VLESS outbound: Better UDP/443 dropping (#7467)

https://github.com/XTLS/Xray-core/pull/7465#issuecomment-7081110276

---------

Co-authored-by: StarProxima <34741787+StarProxima@users.noreply.github.com>
This commit is contained in:
风扇滑翔翼
2026-11-24 23:03:44 +00:00
committed by GitHub
co-authored by StarProxima
parent e17392a96e
commit 5d8b20239f
4 changed files with 36 additions and 8 deletions
+2
View File
@@ -12,6 +12,7 @@ import (
"github.com/xtls/xray-core/common/errors"
"github.com/xtls/xray-core/common/net"
"github.com/xtls/xray-core/common/session"
"github.com/xtls/xray-core/proxy"
"github.com/xtls/xray-core/proxy/vless"
"github.com/xtls/xray-core/transport"
)
@@ -72,6 +73,7 @@ func (c *Client) Dispatch(ctx context.Context, link *transport.Link) (bool, erro
if target.Network == net.Network_UDP && target.Port == 443 {
switch c.config.GetXudpProxyUDP443() {
case "reject", "":
proxy.DropUDP(ctx, link.Reader)
return true, errors.New("XUDP rejected UDP/443 traffic")
case "skip":
return false, nil