mirror of
https://gitclone.com/github.com/MetaCubeX/Clash.Meta
synced 2024-11-14 21:31:16 +08:00
8679968ab0
Ports in TCP and UDP should be parsed as an unsigned integer,
otherwise ports > 32767 get truncated to 32767. As this is
the case with Metadata.UDPAddr(), this fundamentally breaks
UDP connections where demand for high port numbers is high.
This commit fixes all known cases where ParseInt is used for ports,
and has been verified to fix Discord voice connections on port
50001~50004.
Fixes:
|
||
---|---|---|
.. | ||
mime | ||
provider | ||
adapters.go | ||
context.go | ||
dns.go | ||
listener.go | ||
metadata.go | ||
path.go | ||
rule.go | ||
version.go |