mirror of
https://github.com/house-of-vanity/v2-uri-parser.git
synced 2026-11-08 11:08:49 +00:00
Add tcp setting to vless outbound
This commit is contained in:
1 parent
9173c55194
commit
95bca7bce5
2 files changed
+13
-2
No files matched your search
@@ -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