Closed cappuccino5 closed 5 months ago
Hi, are you using the pre-release tun2socks or your modified one? As I notice some of the logs are not part of this project.
是基于v2.5.2改后的,我把tun2socks作为库使用,就改了tcp超时时间改为15s了,发现访问youtube找不到DNS,要多少刷新后或者等5-10分钟后才能访问外网,不知道如何解决,困扰我许久了
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days
Verify steps
Version
v2.5.2
What OS are you seeing the problem on?
Windows
Description
env: windows 11 tun2socks: version v2.5.2 issue: Accessing youtube and google.con is very slow. Through pprof analysis, we found that the delay in reading data in tun is 27.81s.
\tun2socks\v2@v2.5.2 line sn: \core\device\iobased\endpoint.go:78 \core\device\iobased\endpoint.go:99 \core\device\tun\tun_wireguard.go:76
CLI or Config
./tun2socks-windows-amd64.exe -device wintun -proxy socks5://127.0.0.1:1097 -interface "eth2"
netsh interface ipv4 set address name="wintun" source=static addr=192.168.132.12 mask=255.255.255.0 netsh interface ipv4 set dnsservers name="wintun" static address=8.8.8.8 register=none validate=no netsh interface ipv4 add route 0.0.0.0/0 "wintun" 192.168.132.12 metric=1 netsh interface ipv4 add route 38.77.232.6/32 eth2 192.168.7.1 metric=5
Logs
How to Reproduce
none