Closed cfanbo closed 1 year ago
这是典型的route loop了,是路由没有配置正确的结果。
这个是按官网示例中设置的,只是添加了一条自定义的路由
❯ netstat -nr | grep utun123
110.242.68.66 198.18.0.1 UGHS utun123
198.18.0.1 198.18.0.1 UH utun123
你需要设置socket option,将direct的conn设置到指定网卡上。
Verify steps
Version
ccfb3a4
What OS are you seeing the problem on?
Linux, macOS
Description
使用 direct:// 本地代理模式,发现发送请求时,本地一直创建链接。macOS 提示 “WARN[0088] [TCP] dial 139.196.207.38:443: dial tcp 139.196.207.38:443: socket: too many open files”, 在Linux下提示“本地地址占用完,无可用地址”类似的错误,直到机器资源耗尽(ssh被断开或重启电脑)
在 wireshark 抓包,在macOS 看似正常,但在 Linux 下提示大量的
其中
Seq
、Ack
、Win
、Len
和TSVal
字段的值是不变的。CLI or Config
Logs
How to Reproduce
这里
110.242.68.66
是 ping baidu.com 解析出来的IP执行命令后,长时间无响应,而 DEBUG 模式下不停的输出上面的日志,直到本地无法创建端口为止