Allow multiple XUDP in Mux when using XTLS Vision (client side)

This commit is contained in:
RPRX 2023-04-14 22:51:09 +00:00 committed by GitHub
parent b33b0bc89d
commit 4f601530fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -136,10 +136,10 @@ func (h *Handler) Process(ctx context.Context, link *transport.Link, dialer inte
case vless.XRV:
switch request.Command {
case protocol.RequestCommandMux:
return newError(requestAddons.Flow + " doesn't support Mux").AtWarning()
requestAddons.Flow = "" // let server break Mux connections that contain TCP requests
case protocol.RequestCommandUDP:
if !allowUDP443 && request.Port == 443 {
return newError(requestAddons.Flow + " stopped UDP/443").AtInfo()
return newError("XTLS rejected UDP/443 traffic").AtInfo()
}
requestAddons.Flow = ""
case protocol.RequestCommandTCP: