Parse vless header type

This commit is contained in:
Keivan-sf
2025-07-23 21:00:07 +03:30
parent 4c0cddda3f
commit 9b73b4c6ed
2 changed files with 24 additions and 3 deletions

View File

@@ -56,10 +56,15 @@ pub struct RealitySettings {
pub spiderX: String,
}
#[derive(Serialize, Deserialize)]
pub struct TCPHeader {
pub r#type: String,
}
#[allow(non_snake_case)]
#[derive(Serialize, Deserialize)]
pub struct TCPSettings {
pub header: Option<NonHeaderObject>,
pub header: Option<TCPHeader>,
pub acceptProxyProtocol: Option<bool>,
}