mirror of
https://github.com/house-of-vanity/v2-uri-parser.git
synced 2025-12-17 07:27:51 +00:00
16 lines
456 B
Rust
16 lines
456 B
Rust
|
|
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(),
|
||
|
|
}],
|
||
|
|
});
|
||
|
|
}
|