optimize tcp and udp punch

This commit is contained in:
TenderIronh
2023-07-29 20:36:35 +08:00
parent 8ebdf3341e
commit 46b4f78010
8 changed files with 339 additions and 332 deletions

View File

@@ -43,8 +43,7 @@ func update(host string, port int) {
return
}
updateInfo := UpdateInfo{}
err = json.Unmarshal(rspBuf, &updateInfo)
if err != nil {
if err = json.Unmarshal(rspBuf, &updateInfo); err != nil {
gLog.Println(LvERROR, rspBuf, " update info decode error:", err)
return
}