mirror of
https://github.com/house-of-vanity/v2-uri-parser.git
synced 2025-12-17 07:27:51 +00:00
Parse shadowsocks
This commit is contained in:
15
src/parser/shadow_socks/mod.rs
Normal file
15
src/parser/shadow_socks/mod.rs
Normal 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(),
|
||||
}],
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user