From d8a908f507e46965b12e31211fa7cc2e004272cf Mon Sep 17 00:00:00 2001 From: gVisor bot Date: Sat, 10 Apr 2021 12:10:10 +0800 Subject: [PATCH] Chore: use correctly vmess http2 default host --- adapters/outbound/vmess.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adapters/outbound/vmess.go b/adapters/outbound/vmess.go index 0d05f8d6..ecdcb8ed 100644 --- a/adapters/outbound/vmess.go +++ b/adapters/outbound/vmess.go @@ -273,7 +273,7 @@ func NewVmess(option VmessOption) (*Vmess, error) { switch option.Network { case "h2": if len(option.HTTP2Opts.Host) == 0 { - option.HTTP2Opts.Host = append(option.HTTP2Opts.Host, option.Server) + option.HTTP2Opts.Host = append(option.HTTP2Opts.Host, "www.example.com") } case "grpc": dialFn := func(network, addr string) (net.Conn, error) {