Explorar o código

Vision only reject TCP command for VLESS-TCP-TLS

UDP and MUX command currently has no flow value.
Also the character is the same with or without XTLS
yuhan6665 %!s(int64=2) %!d(string=hai) anos
pai
achega
f35ded79ad
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      proxy/vless/inbound/inbound.go

+ 1 - 1
proxy/vless/inbound/inbound.go

@@ -492,7 +492,7 @@ func (h *Handler) Process(ctx context.Context, network net.Network, connection s
 			return newError(account.ID.String() + " is not able to use " + requestAddons.Flow).AtWarning()
 		}
 	case "", "none":
-		if accountFlow == vless.XRV && !allowNoneFlow {
+		if accountFlow == vless.XRV && !allowNoneFlow && request.Command == protocol.RequestCommandTCP {
 			return newError(account.ID.String() + " is not able to use " + vless.XRV + 
 			". Note the pure tls proxy has certain tls in tls characters. Append \",none\" in flow to suppress").AtWarning()
 		}