mirror of
https://github.com/house-of-vanity/v2-uri-parser.git
synced 2026-11-08 11:08:49 +00:00
Add wss setting to vless outbound
This commit is contained in:
1 parent
b5dd8dfcc6
commit
9173c55194
2 files changed
+30
-1
No files matched your search
@@ -9,7 +9,7 @@ fn create_outbound_object(data: models::VlessData) -> Outbound {
|
||||
protocol: String::from("vless"),
|
||||
tag: String::from("proxy"),
|
||||
streamSettings: StreamSettings {
|
||||
network: data.query.r#type,
|
||||
network: data.query.r#type.clone(),
|
||||
security: data.query.security.clone(),
|
||||
tlsSettings: if data.query.security == String::from("tls") {
|
||||
Some(TlsSettings {
|
||||
@@ -27,6 +27,14 @@ fn create_outbound_object(data: models::VlessData) -> Outbound {
|
||||
} else {
|
||||
None
|
||||
},
|
||||
wsSettings: if data.query.r#type == String::from("ws") {
|
||||
Some(WsSettings {
|
||||
path: Some(String::from("")),
|
||||
acceptProxyProtocol: None,
|
||||
})
|
||||
} else {
|
||||
None
|
||||
},
|
||||
},
|
||||
settings: OutboundSettings::Vless(VlessOutboundSettings {
|
||||
vnext: vec![VlessServerObject {
|
||||
|
||||
Reference in new issue
Block a user