mihomo/adapter/outbound
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
..
base.go Feature: mark on socket (#1705) 2021-11-08 16:59:48 +08:00
direct.go Feature: dial different NIC for all proxies (#1714) 2021-11-07 16:48:51 +08:00
http.go Feature: dial different NIC for all proxies (#1714) 2021-11-07 16:48:51 +08:00
reject.go Fix: should return io.EOF immediately 2021-11-20 12:44:31 +08:00
shadowsocks.go Feature: dial different NIC for all proxies (#1714) 2021-11-07 16:48:51 +08:00
shadowsocksr.go Feature: dial different NIC for all proxies (#1714) 2021-11-07 16:48:51 +08:00
snell.go Fix: multiple port string parsing overflow (#1868) 2022-01-02 01:09:29 +08:00
socks5.go Feature: mark on socket (#1705) 2021-11-08 16:59:48 +08:00
trojan.go Feature: dial different NIC for all proxies (#1714) 2021-11-07 16:48:51 +08:00
util.go Fix: codeql alerts 2021-11-08 00:32:21 +08:00
vmess.go Chore: remove forward compatible code 2022-01-02 00:48:57 +08:00