Resolve tcp wrong header type

This commit is contained in:
Keivan-sf
2025-07-26 12:21:12 +03:30
parent 5e594c1156
commit 0e813911a3

View File

@@ -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,
}) })