From a06b387accfdd71640b672ce71f96589402973d3 Mon Sep 17 00:00:00 2001 From: H1JK Date: Sat, 28 Jan 2023 14:58:52 +0800 Subject: [PATCH] adjust: VLESS enable XUDP by default --- adapter/outbound/vless.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/adapter/outbound/vless.go b/adapter/outbound/vless.go index 0bd56ff48..dd6e0f23c 100644 --- a/adapter/outbound/vless.go +++ b/adapter/outbound/vless.go @@ -477,11 +477,11 @@ func NewVless(option VlessOption) (*Vless, error) { switch option.PacketEncoding { case "packetaddr", "packet": option.PacketAddr = true - case "xudp": - option.XUDP = true - } - if option.XUDP { - option.PacketAddr = false + option.XUDP = false + default: // https://github.com/XTLS/Xray-core/pull/1567#issuecomment-1407305458 + if !option.PacketAddr { + option.XUDP = true + } } client, err := vless.NewClient(option.UUID, addons, option.FlowShow)