From e4916d52d41d77361eb5973952fe053a8292922c Mon Sep 17 00:00:00 2001 From: gVisor bot Date: Sat, 14 Jan 2023 16:20:58 +0800 Subject: [PATCH] Fix: TLS defaults to true for h2/grpc networks --- adapter/outbound/vmess.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adapter/outbound/vmess.go b/adapter/outbound/vmess.go index 26ed400e..54e5f865 100644 --- a/adapter/outbound/vmess.go +++ b/adapter/outbound/vmess.go @@ -367,7 +367,7 @@ func NewVmess(option VmessOption) (*Vmess, error) { switch option.Network { case "h2", "grpc": if !option.TLS { - return nil, fmt.Errorf("TLS must be true with h2/grpc network") + option.TLS = true } }