mirror of
https://github.com/house-of-vanity/v2-uri-parser.git
synced 2025-12-17 07:27:51 +00:00
Support kcp stream
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user