mirror of
https://github.com/gravitl/netmaker.git
synced 2025-11-08 07:41:41 +08:00
updating models
This commit is contained in:
parent
2861afb1cf
commit
675a6ad284
3 changed files with 5 additions and 0 deletions
|
|
@ -297,6 +297,8 @@ func (s *NodeServiceServer) GetPeers(req *nodepb.GetPeersReq, stream nodepb.Node
|
|||
Peers: &nodepb.PeersResponse{
|
||||
Address: peers[i].Address,
|
||||
Endpoint: peers[i].Endpoint,
|
||||
Gatewayrange: peers[i].GatewayRange,
|
||||
Isgateway: peers[i].IsGateway,
|
||||
Publickey: peers[i].PublicKey,
|
||||
Keepalive: peers[i].KeepAlive,
|
||||
Listenport: peers[i].ListenPort,
|
||||
|
|
|
|||
|
|
@ -95,6 +95,8 @@ type PeersResponse struct {
|
|||
Endpoint string `json:"endpoint" bson:"endpoint"`
|
||||
Address string `json:"address" bson:"address"`
|
||||
LocalAddress string `json:"localaddress" bson:"localaddress"`
|
||||
IsGateway bool `json:"isgateway" bson:"isgateway"`
|
||||
GatewayRange string `json:"gatewayrange" bson:"gatewayrange"`
|
||||
ListenPort int32 `json:"listenport" bson:"listenport"`
|
||||
KeepAlive int32 `json:"persistentkeepalive" bson:"persistentkeepalive"`
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1278,6 +1278,7 @@ func getPeers(macaddress string, network string, server string) ([]wgtypes.PeerC
|
|||
fmt.Println("")
|
||||
fmt.Printf(" Gateway?: ",res.Peers.Isgateway)
|
||||
fmt.Println("")
|
||||
fmt.Println(" Gate Range: " + res.Peers.Gatewayrange)
|
||||
pubkey, err := wgtypes.ParseKey(res.Peers.Publickey)
|
||||
if err != nil {
|
||||
fmt.Println("error parsing key")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue