mirror of
https://github.com/house-of-vanity/v2-uri-parser.git
synced 2025-12-17 07:27:51 +00:00
Add grpc stream settings
This commit is contained in:
@@ -55,6 +55,14 @@ pub fn create_outbound_object(data: models::VlessData) -> Outbound {
|
||||
} else {
|
||||
None
|
||||
},
|
||||
grpcSettings: if data.query.r#type == String::from("grpc") {
|
||||
Some(GRPCSettings {
|
||||
multiMode: false,
|
||||
serviceName: data.query.service_name,
|
||||
})
|
||||
} else {
|
||||
None
|
||||
},
|
||||
},
|
||||
settings: OutboundSettings::Vless(VlessOutboundSettings {
|
||||
vnext: vec![VlessServerObject {
|
||||
|
||||
Reference in New Issue
Block a user