clash/component/dialer
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
..
bind_darwin.go Fix: bind iface should throw control error 2021-11-10 22:19:11 +08:00
bind_linux.go Fix: bind iface should throw control error 2021-11-10 22:19:11 +08:00
bind_others.go Fix: multiple port string parsing overflow (#1868) 2022-01-02 01:09:29 +08:00
dialer.go Feature: mark on socket (#1705) 2021-11-08 16:59:48 +08:00
mark_linux.go Feature: mark on socket (#1705) 2021-11-08 16:59:48 +08:00
mark_nonlinux.go Feature: mark on socket (#1705) 2021-11-08 16:59:48 +08:00
options.go Feature: mark on socket (#1705) 2021-11-08 16:59:48 +08:00
reuse_others.go Feature: add dhcp type dns client (#1509) 2021-09-06 23:07:34 +08:00
reuse_unix.go Feature: add dhcp type dns client (#1509) 2021-09-06 23:07:34 +08:00
reuse_windows.go Feature: add dhcp type dns client (#1509) 2021-09-06 23:07:34 +08:00