mirror of
https://github.com/openp2p-cn/openp2p.git
synced 2026-04-24 02:20:46 +08:00
optimize tcp and udp punch
This commit is contained in:
@@ -137,8 +137,7 @@ func netInfo() *NetInfo {
|
||||
continue
|
||||
}
|
||||
rsp := NetInfo{}
|
||||
err = json.Unmarshal(buf[:n], &rsp)
|
||||
if err != nil {
|
||||
if err = json.Unmarshal(buf[:n], &rsp); err != nil {
|
||||
gLog.Printf(LvERROR, "wrong NetInfo:%s", err)
|
||||
continue
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user