install mode and improve relay

This commit is contained in:
TenderIronh
2021-12-09 18:54:46 +08:00
parent a2387fed68
commit f12059d889
16 changed files with 309 additions and 89 deletions
+5 -1
View File
@@ -11,7 +11,7 @@ import (
"time"
)
const OpenP2PVersion = "0.95.5"
const OpenP2PVersion = "0.96.0"
const ProducnName string = "openp2p"
type openP2PHeader struct {
@@ -233,6 +233,10 @@ type TunnelMsg struct {
ID uint64 `json:"id,omitempty"`
}
type RelayNodeReq struct {
PeerNode string `json:"peerNode,omitempty"`
}
type RelayNodeRsp struct {
RelayName string `json:"relayName,omitempty"`
RelayToken uint64 `json:"relayToken,omitempty"`