File tree Expand file tree Collapse file tree 1 file changed +2
-9
lines changed
Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -67,11 +67,7 @@ pub struct HttpOpts {
6767
6868#[ derive( Serialize ) ]
6969pub 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 {
You can’t perform that action at this time.
0 commit comments