Skip to content

Commit

Permalink
fix opt.host in http2 config (#323)
Browse files Browse the repository at this point in the history
  • Loading branch information
VendettaReborn committed Mar 18, 2024
1 parent b395058 commit 051b460
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clash_lib/src/proxy/vmess/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand Down

0 comments on commit 051b460

Please sign in to comment.