mirror of
https://github.com/openp2p-cn/openp2p.git
synced 2026-11-13 01:08:44 +08:00
Update nat.go
BUG2
This commit is contained in:
@@ -67,7 +67,7 @@ func natTest(serverHost string, serverPort int, localPort int) (publicIP string,
|
||||
}
|
||||
|
||||
// 连接可以将数据写入所需的地址。
|
||||
msg, errerr := newMessage(MsgNATDetect, 0, nil)
|
||||
msg, errerr := newMessage(MsgNATDetect, 0, nil) //BUG
|
||||
_, err = conn.WriteTo(msg, dst)
|
||||
if err != nil {
|
||||
return "", 0, err
|
||||
|
||||
Reference in New Issue
Block a user