[Fix]Vless tls must not be true
This commit is contained in:
parent
900e852525
commit
b20e202321
1 changed files with 3 additions and 3 deletions
|
@ -292,9 +292,9 @@ func (uc *vlessPacketConn) ReadFrom(b []byte) (int, net.Addr, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewVless(option VlessOption) (*Vless, error) {
|
func NewVless(option VlessOption) (*Vless, error) {
|
||||||
if !option.TLS {
|
//if !option.TLS {
|
||||||
return nil, fmt.Errorf("TLS must be true with vless")
|
// return nil, fmt.Errorf("TLS must be true with vless")
|
||||||
}
|
//}
|
||||||
|
|
||||||
var addons *vless.Addons
|
var addons *vless.Addons
|
||||||
if option.Network != "ws" && len(option.Flow) >= 16 {
|
if option.Network != "ws" && len(option.Flow) >= 16 {
|
||||||
|
|
Loading…
Reference in a new issue