mirror of
https://github.com/openp2p-cn/openp2p.git
synced 2026-11-09 23:39:54 +08:00
Update nat.go
Fix fixing bug
This commit is contained in:
@@ -121,6 +121,8 @@ func publicIPTest(publicIP string, echoPort int) (hasPublicIP int, hasUPNPorNATP
|
||||
echoConn, err = net.ListenUDP("udp", &net.UDPAddr{IP: net.IPv4zero, Port: echoPort})
|
||||
if err != nil {
|
||||
gLog.Println(LvERROR, "echo server listen error:", err)
|
||||
wg.Done()
|
||||
return
|
||||
}
|
||||
wg.Done()
|
||||
// close outside for breaking the ReadFromUDP
|
||||
|
||||
Reference in New Issue
Block a user