Skip to content

Commit e377fd5

Browse files
committed
Fix xhttp clash client setup
1 parent 222b161 commit e377fd5

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

src/xray_op/clash.rs

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,7 @@ pub struct HttpOpts {
6767

6868
#[derive(Serialize)]
6969
pub struct XHttpOpts {
70-
method: &'static str,
7170
path: Vec<String>,
72-
#[serde(rename = "ip-version")]
73-
ip_version: &'static str,
74-
host: String,
7571
}
7672

7773
#[derive(Serialize, Default)]
@@ -163,17 +159,14 @@ pub fn generate_proxy_config(
163159
),
164160
StreamSettings {
165161
xhttp_settings: Some(xhttp),
166-
reality_settings: Some(reality),
162+
reality_settings: Some(_reality),
167163
..
168164
} => (
169-
"http".to_string(), // для Clash Verge / XHTTP Reality используем http
165+
"xhttp".to_string(),
170166
None,
171167
None,
172168
Some(XHttpOpts {
173-
method: "GET",
174169
path: vec![xhttp.path.clone()],
175-
ip_version: "dual",
176-
host: reality.server_names.get(0).cloned().unwrap_or_default(),
177170
}),
178171
),
179172
StreamSettings {

0 commit comments

Comments
 (0)