Closed Qiiamx closed 2 hours ago
xtcp报错(如果我不配置stun服务器则不会报错但是打洞的过程经常会超时) 所以我自己用coturn建了一个stun服务器,但是打洞失败,日志如下
我查了源代码, 不理解为什么要加这一行 if len(addrs) < 2 { return nil, fmt.Errorf("discover error: not enough addresses") } 求佬解答
if len(addrs) < 2 { return nil, fmt.Errorf("discover error: not enough addresses") }
0.61.0
windows/amd64
serverAddr = "xxxx" serverPort = 7000 auth.method = "token" auth.token = "xxxx" natHoleStunServer = "121.89.169.157:3478"
webServer.addr = "127.0.0.1" webServer.port = 7400 webServer.user = "admin" webServer.password = "admin"
[[proxies]]
name = "nginx" type = "xtcp" localIP = "127.0.0.1" localPort = 80 secretKey = "xxxx"
nathole prepare error: discover error: not enough addresses
...
一言以蔽之, 如果你的STUN服务器没有两个公网IP coturn.conf中 把 no-rfc5780 注释掉 external-ip 写 公网IP/内网IP 佬,太帅了佬= =
Bug Description
xtcp报错(如果我不配置stun服务器则不会报错但是打洞的过程经常会超时) 所以我自己用coturn建了一个stun服务器,但是打洞失败,日志如下
我查了源代码, 不理解为什么要加这一行
if len(addrs) < 2 { return nil, fmt.Errorf("discover error: not enough addresses") }
求佬解答frpc Version
0.61.0
frps Version
0.61.0
System Architecture
windows/amd64
Configurations
serverAddr = "xxxx" serverPort = 7000 auth.method = "token" auth.token = "xxxx" natHoleStunServer = "121.89.169.157:3478"
webServer.addr = "127.0.0.1" webServer.port = 7400 webServer.user = "admin" webServer.password = "admin"
[[proxies]]
name = "nginx"
type = "tcp"
localIP = "127.0.0.1"
localPort = 80
remotePort = 7999
name = "nginx" type = "xtcp" localIP = "127.0.0.1" localPort = 80 secretKey = "xxxx"
Logs
nathole prepare error: discover error: not enough addresses
Steps to reproduce
...
Affected area