clash/component
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
..
auth Feature: local socks5/http(s) auth (#216) 2019-06-27 17:04:25 +08:00
dhcp Change: use interface HardwareAddr for dhcp discovery 2021-10-14 22:54:43 +08:00
dialer Fix: multiple port string parsing overflow (#1868) 2022-01-02 01:09:29 +08:00
fakeip Fix: fakeip pool cycle used 2021-11-23 22:01:49 +08:00
iface Style: use gofumpt for fmt 2021-10-10 23:44:09 +08:00
mmdb Style: use gofumpt for fmt 2021-10-10 23:44:09 +08:00
nat Fix: tunnel UDP race condition (#1043) 2020-10-28 21:26:50 +08:00
pool Chore: remove broken test temporarily 2020-09-26 20:36:52 +08:00
process Style: use gofumpt for fmt 2021-10-10 23:44:09 +08:00
profile Chore: remove forward compatible code 2022-01-02 00:48:57 +08:00
resolver Fix: domain dns should follow hosts config, close #1318 2021-04-01 21:20:44 +08:00
trie Style: use gofumpt for fmt 2021-10-10 23:44:09 +08:00