mihomo/adapter
HamsterReserved 8679968ab0
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
..
inbound Fix: should not trust address of http.Client (#1616) 2021-09-13 23:46:39 +08:00
outbound Fix: multiple port string parsing overflow (#1868) 2022-01-02 01:09:29 +08:00
outboundgroup Fix: when both providers and proxies are present, use the health check configuration for proxies (#1821) 2021-12-12 20:37:30 +08:00
provider Chore: remove reduce regex compile (#1855) 2021-12-26 20:47:12 +08:00
adapter.go Feature: dial different NIC for all proxies (#1714) 2021-11-07 16:48:51 +08:00
parser.go Style: code style 2021-06-10 14:05:56 +08:00