diff --git a/clash_lib/src/proxy/vmess/mod.rs b/clash_lib/src/proxy/vmess/mod.rs index 30fc4e503..327996a50 100644 --- a/clash_lib/src/proxy/vmess/mod.rs +++ b/clash_lib/src/proxy/vmess/mod.rs @@ -94,7 +94,7 @@ impl Handler { }; let h2_builder = Http2Config { - hosts: vec![self.opts.server.clone()], + hosts: opt.host.clone(), method: http::Method::GET, headers: HashMap::new(), path: opt.path.to_owned().try_into().expect("invalid H2 path"),