mihomo/constant
gVisor bot 85f1b22340 Fix: multiple port string parsing overflow (#1868)
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: d40e5e4fe6

Co-authored-by: Hamster Tian <haotia@gmail.com>
2022-01-02 01:09:29 +08:00
..
mime Chore: builtin right mime of .js (#1808) 2021-12-08 13:38:25 +08:00
provider Chore: contexify ProxyAdapter ListenPacket 2021-10-15 21:44:53 +08:00
adapters.go Feature: add filter on proxy provider (#1511) 2021-11-20 23:38:49 +08:00
context.go Refactor: make inbound request contextual 2021-01-23 14:58:09 +08:00
dns.go Fix: unexpected proxy dial behavior on mapping mode 2021-10-18 21:08:27 +08:00
listener.go Fix: listener patch diff 2021-08-01 00:35:37 +08:00
metadata.go Fix: multiple port string parsing overflow (#1868) 2022-01-02 01:09:29 +08:00
path.go Change: use bbolt as cache db 2021-10-04 19:20:11 +08:00
rule.go Chore: rename NoResolveIP to ShouldResolveIP 2020-07-27 11:57:55 +08:00
version.go Feature: add version command (#148) 2019-03-23 19:24:26 +08:00