From 35805f93770ca801d3c47dc931a158626124f5ac Mon Sep 17 00:00:00 2001 From: RPRX <63339210+RPRX@users.noreply.github.com> Date: Wed, 25 Nov 2026 11:54:12 +0000 Subject: [PATCH] XHTTP transport: Print warning when using VLESS Multiplex at client side, instead of blocking it at server side https://github.com/XTLS/Xray-core/pull/7364#issuecomment-7141663413 https://github.com/XTLS/Xray-core/pull/6755#issuecomment-5720463978 https://github.com/XTLS/Xray-core/pull/6755#issuecomment-7160365746 --- app/proxyman/inbound/inbound.go | 4 ---- infra/conf/xray.go | 7 ++++++- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/app/proxyman/inbound/inbound.go b/app/proxyman/inbound/inbound.go index 62b2a7ceb..594cd7979 100644 --- a/app/proxyman/inbound/inbound.go +++ b/app/proxyman/inbound/inbound.go @@ -7,7 +7,6 @@ import ( "github.com/xtls/xray-core/app/proxyman" "github.com/xtls/xray-core/common" "github.com/xtls/xray-core/common/errors" - "github.com/xtls/xray-core/common/net" "github.com/xtls/xray-core/common/serial" "github.com/xtls/xray-core/common/session" "github.com/xtls/xray-core/core" @@ -184,9 +183,6 @@ func NewHandler(ctx context.Context, config *core.InboundHandlerConfig) (inbound Mark: streamSettings.SocketSettings.Mark, }) } - if streamSettings != nil && (streamSettings.ProtocolName == "splithttp" || streamSettings.ProtocolName == "masque") { - ctx = session.ContextWithAllowedNetwork(ctx, net.Network_UDP) - } return NewAlwaysOnInboundHandler(ctx, tag, receiverSettings, proxySettings) } diff --git a/infra/conf/xray.go b/infra/conf/xray.go index 5d2d67a6a..a6fc00533 100644 --- a/infra/conf/xray.go +++ b/infra/conf/xray.go @@ -367,10 +367,15 @@ func (c *OutboundDetourConfig) Build() (*core.OutboundHandlerConfig, error) { if err != nil { return nil, errors.New("failed to build outbound handler for protocol ", c.Protocol).Base(err) } + + if senderSettings.StreamSettings != nil && senderSettings.StreamSettings.ProtocolName == "splithttp" { + if v, ok := ts.(*outbound.Config); ok && v.Multiplex != nil && v.Multiplex.Concurrency != 0 { + errors.LogWarning(context.Background(), `ATTENTION: Using VLESS Multiplex over XHTTP XMUX`) + } + } if err := validateXDrive(ts, senderSettings.StreamSettings, nil); err != nil { return nil, err } - if err := validateOutboundTransportSecurity(rawConfig, senderSettings); err != nil { return nil, err }