portmap loss & android ipv6 failed & public ip detect

This commit is contained in:
TenderIronh
2024-11-21 10:31:07 +08:00
parent 3616768682
commit 77bfa45172
5 changed files with 32 additions and 9 deletions
+7 -1
View File
@@ -10,7 +10,7 @@ import (
"time"
)
const OpenP2PVersion = "3.21.8"
const OpenP2PVersion = "3.21.10"
const ProductName string = "openp2p"
const LeastSupportVersion = "3.0.0"
const SyncServerTimeVersion = "3.9.0"
@@ -217,6 +217,12 @@ const (
MsgSDWANInfoRsp
)
// MsgNATDetect
const (
MsgNAT = iota
MsgPublicIP
)
func newMessage(mainType uint16, subType uint16, packet interface{}) ([]byte, error) {
data, err := json.Marshal(packet)
if err != nil {