From 11004753263bf1e9946fce4a2bcc56bd2d2fb3ba Mon Sep 17 00:00:00 2001 From: gVisor bot Date: Wed, 17 Nov 2021 19:09:01 +0800 Subject: [PATCH] [Fix]Vless tls must not be true --- adapter/outbound/vless.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/adapter/outbound/vless.go b/adapter/outbound/vless.go index 441eed31..1776d0bf 100644 --- a/adapter/outbound/vless.go +++ b/adapter/outbound/vless.go @@ -292,9 +292,9 @@ func (uc *vlessPacketConn) ReadFrom(b []byte) (int, net.Addr, error) { } func NewVless(option VlessOption) (*Vless, error) { - //if !option.TLS { - // return nil, fmt.Errorf("TLS must be true with vless") - //} + if !option.TLS && option.Network =="grpc"{ + return nil, fmt.Errorf("TLS must be true with vless-grpc") + } var addons *vless.Addons if option.Network != "ws" && len(option.Flow) >= 16 {