XUDP GetGlobalID(): Remove inbound.Name == "wireguard" for now

https://github.com/XTLS/Xray-core/pull/5947#issuecomment-4256423483
This commit is contained in:
RPRX
2026-04-15 23:47:21 +00:00
committed by GitHub
parent 310b764811
commit 9dd17d55fb

View File

@@ -53,7 +53,7 @@ func GetGlobalID(ctx context.Context) (globalID [8]byte) {
return
}
if inbound := session.InboundFromContext(ctx); inbound != nil && inbound.Source.Network == net.Network_UDP &&
(inbound.Name == "dokodemo-door" || inbound.Name == "socks" || inbound.Name == "shadowsocks" || inbound.Name == "tun" || inbound.Name == "wireguard") {
(inbound.Name == "dokodemo-door" || inbound.Name == "socks" || inbound.Name == "shadowsocks" || inbound.Name == "tun") {
h := blake3.New(8, BaseKey)
h.Write([]byte(inbound.Source.String()))
copy(globalID[:], h.Sum(nil))