Parse trojan URIs

This commit is contained in:
Keivan-sf
2025-07-27 18:19:35 +03:30
parent b27f6e776f
commit 2a6c452c0d
7 changed files with 105 additions and 4 deletions

View File

@@ -7,7 +7,7 @@ pub fn create_outbound_settings(data: &RawData) -> OutboundSettings {
vnext: vec![VlessServerObject {
port: data.port,
address: data.address.clone(),
users: Some(vec![VlessUser {
users: Some(vec![VnextUser {
id: data.uuid.clone(),
flow: data.flow.clone(),
encryption: Some(data.encryption.clone().unwrap_or(String::from("none"))),