mirror of
https://github.com/house-of-vanity/v2-uri-parser.git
synced 2025-12-17 07:27:51 +00:00
Add tcp setting to vless outbound
This commit is contained in:
@@ -35,6 +35,16 @@ fn create_outbound_object(data: models::VlessData) -> Outbound {
|
||||
} else {
|
||||
None
|
||||
},
|
||||
tcpSettings: if data.query.r#type == String::from("tcp") {
|
||||
Some(TCPSettings {
|
||||
header: Some(NonHeaderObject {
|
||||
r#type: String::from("none"),
|
||||
}),
|
||||
acceptProxyProtocol: None,
|
||||
})
|
||||
} else {
|
||||
None
|
||||
},
|
||||
},
|
||||
settings: OutboundSettings::Vless(VlessOutboundSettings {
|
||||
vnext: vec![VlessServerObject {
|
||||
|
||||
Reference in New Issue
Block a user