go-gost / gost

GO Simple Tunnel - a simple tunnel written in golang
https://gost.run
MIT License
4.38k stars 528 forks source link

v3 版本的 udp 不正常 socks5: UDP relay is disabled #478

Closed scruel closed 3 months ago

scruel commented 6 months ago

gost 作为 client2server 使用, 尝试 server 端命令:

gost -L :1080?udp=true
gost -L :1080?relay=udp
gost -L :1080?relay=udp&udp=true

三种方式均出现了 socks5: UDP relay is disabled 报错。

另外与 sinbox 配合使用 DNS 转发的时候,还有如下的报错,无法解析 DNS 记录:

+0000 2024-05-18 20:01:41 DEBUG dns: exchange www.baidu.com. IN A
+0000 2024-05-18 20:12:02 ERROR dns: exchange failed for www.baidu.com. IN A: context canceled

关联 https://github.com/go-gost/gost/issues/471 https://github.com/go-gost/gost/issues/274

ginuerzh commented 6 months ago

完整的Debug日志有吗?

scruel commented 6 months ago

日志只记下了 debug error,当时没完整存下来,有空我复现补一下

189er commented 3 months ago

z:/gost.exe -D -L socks://127.0.0.7:1080?udp=true&bind=true&relay=udp;

试了一下udp123,没有问题