Support kcp stream

This commit is contained in:
Keivan-sf
2025-07-26 16:08:27 +03:30
parent 714e5afe70
commit 763169e04b
2 changed files with 28 additions and 0 deletions

View File

@@ -79,6 +79,20 @@ pub fn create_outbound_object(data: models::VlessData) -> Outbound {
} else {
None
},
kcpSettings: if network_type == String::from("kcp") {
Some(KCPSettings {
mtu: None,
tti: None,
congestion: None,
uplinkCapacity: None,
readBufferSize: None,
writeBufferSize: None,
downlinkCapacity: None,
seed: data.query.seed,
})
} else {
None
},
},
settings: OutboundSettings::Vless(VlessOutboundSettings {
vnext: vec![VlessServerObject {