Parse shadowsocks

This commit is contained in:
Keivan-sf
2025-07-27 20:35:12 +03:30
parent cbe39f008e
commit 574c3807f3
8 changed files with 122 additions and 2 deletions

View File

@@ -0,0 +1,15 @@
pub mod data;
mod models;
use crate::config_models::*;
pub fn create_outbound_settings(data: &RawData) -> OutboundSettings {
return OutboundSettings::ShadowSocks(ShadowSocksOutboundSettings {
servers: vec![ShadowSocksServerObject {
address: data.address.clone(),
port: data.port,
password: data.uuid.clone(),
level: Some(0),
method: data.server_method.clone(),
}],
});
}