From 606e8948c0dd1f72757bbfd0c9339ab9982510ef Mon Sep 17 00:00:00 2001 From: metacubex 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 } }