Fix: TLS defaults to true for h2/grpc networks

This commit is contained in:
gVisor bot 2023-01-14 16:20:58 +08:00
parent 0340ab8ffa
commit e4916d52d4

View file

@ -367,7 +367,7 @@ func NewVmess(option VmessOption) (*Vmess, error) {
switch option.Network { switch option.Network {
case "h2", "grpc": case "h2", "grpc":
if !option.TLS { if !option.TLS {
return nil, fmt.Errorf("TLS must be true with h2/grpc network") option.TLS = true
} }
} }