netchx / netch

A simple proxy client
GNU General Public License v3.0
16.3k stars 2.71k forks source link

使用socks5服务器, 会发送端口为0的不合法cmd请求, 无限卡在测试nat类型 #908

Closed fish58bf closed 1 year ago

fish58bf commented 2 years ago

Describe the bug

使用socket5代理服务器; netch 测试NAT 会发送s5 cmd请求数据为: cmdType = UDP addressType=IPV4 host=0.0.0.0 port=0 来测试?

端口 0 不是合法的 SocksCmdRequest ? 代理服务端关闭了这个连接. netch 无限卡在: 正在测试NAT类型, 日志报: Failed to read handshake data: EOF

image

To Reproduce

  1. 添加socks 服务器
  2. 启动

Log

2022-08-18 19:17:16][Information] Built-in wintun.dll Hash: 8a0581991caf829cd92b27aabcb2bab618cc8fbc887d8f86a533c95d2e3f17d4 [2022-08-18 19:17:16][Information] Installed wintun.dll Hash: 8a0581991caf829cd92b27aabcb2bab618cc8fbc887d8f86a533c95d2e3f17d4 [aiodns][dial] url.Parse: parse "202.96.128.68:53": first path segment in URL cannot contain colon [aiodns][dial] url.Parse: parse "8.8.8.8:53": first path segment in URL cannot contain colon [aiodns] Started 2022/08/18 19:17:22 [Wintun] WintunCreateAdapter: Creating adapter 2022/08/18 19:17:22 [Wintun] SelectDriver: Using existing driver 0.13 [2022-08-18 19:17:23][Information] Net traffic processes: (9856)Netch 2022/08/18 19:17:26 [tun2socks][UDP][socks][Connect] Failed to read handshake data: EOF 2022/08/18 19:17:26 [tun2socks][UDP][socks][Connect] Failed to read handshake data: EOF 2022/08/18 19:17:27 [tun2socks][UDP][socks][Connect] Failed to read handshake data: EOF 2022/08/18 19:17:27 [tun2socks][UDP][socks][Connect] Failed to read handshake data: EOF 2022/08/18 19:17:28 [tun2socks][UDP][socks][Connect] Failed to read handshake data: EOF 2022/08/18 19:17:28 [tun2socks][UDP][socks][Connect] Failed to read handshake data: EOF 2022/08/18 19:17:28 [tun2socks][UDP][socks][Connect] Failed to read handshake data: EOF 2022/08/18 19:17:29 [tun2socks][UDP][socks][Connect] Failed to read handshake data: EOF [2022-08-18 19:17:29][Information] Stop Main Controller 2022/08/18 19:17:29 [tun2socks] Closed

Environment

版本  Windows 10 专业版
版本号 21H2
安装日期    ‎2021/‎11/‎24
操作系统内部版本    19044.1889

Additional information

No response

github-actions[bot] commented 2 years ago

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] commented 1 year ago

This issue was closed because it has been inactive for 14 days since being marked as stale.