adjust: VLESS enable XUDP by default
This commit is contained in:
parent
03520e0d6f
commit
a06b387acc
1 changed files with 5 additions and 5 deletions
|
@ -477,11 +477,11 @@ func NewVless(option VlessOption) (*Vless, error) {
|
||||||
switch option.PacketEncoding {
|
switch option.PacketEncoding {
|
||||||
case "packetaddr", "packet":
|
case "packetaddr", "packet":
|
||||||
option.PacketAddr = true
|
option.PacketAddr = true
|
||||||
case "xudp":
|
option.XUDP = false
|
||||||
option.XUDP = true
|
default: // https://github.com/XTLS/Xray-core/pull/1567#issuecomment-1407305458
|
||||||
}
|
if !option.PacketAddr {
|
||||||
if option.XUDP {
|
option.XUDP = true
|
||||||
option.PacketAddr = false
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
client, err := vless.NewClient(option.UUID, addons, option.FlowShow)
|
client, err := vless.NewClient(option.UUID, addons, option.FlowShow)
|
||||||
|
|
Loading…
Reference in a new issue