mirror of
https://github.com/house-of-vanity/v2-uri-parser.git
synced 2025-12-16 15:07:53 +00:00
Resolve tcp wrong header type
This commit is contained in:
@@ -48,7 +48,11 @@ pub fn create_outbound_object(data: models::VlessData) -> Outbound {
|
|||||||
tcpSettings: if data.query.r#type == String::from("tcp") {
|
tcpSettings: if data.query.r#type == String::from("tcp") {
|
||||||
Some(TCPSettings {
|
Some(TCPSettings {
|
||||||
header: Some(TCPHeader {
|
header: Some(TCPHeader {
|
||||||
r#type: data.query.header_type.clone(),
|
r#type: if data.query.header_type.len() > 1 {
|
||||||
|
data.query.header_type
|
||||||
|
} else {
|
||||||
|
String::from("none")
|
||||||
|
},
|
||||||
}),
|
}),
|
||||||
acceptProxyProtocol: None,
|
acceptProxyProtocol: None,
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user