adding gateway functionality

This commit is contained in:
afeiszli
2021-04-13 02:55:49 -04:00
parent 1402dd828a
commit 9839cbd806
13 changed files with 242 additions and 112 deletions

View File

@@ -43,7 +43,7 @@ func (s *NodeServiceServer) ReadNode(ctx context.Context, req *nodepb.ReadNodeRe
Nodenetwork: node.Network,
Interface: node.Interface,
Localaddress: node.LocalAddress,
Preup: node.PreUp,
Postdown: node.PostDown,
Postup: node.PostUp,
Checkininterval: node.CheckInInterval,
Ispending: node.IsPending,
@@ -197,7 +197,7 @@ func (s *NodeServiceServer) UpdateNode(ctx context.Context, req *nodepb.UpdateNo
PersistentKeepalive: data.GetKeepalive(),
Network: data.GetNodenetwork(),
Interface: data.GetInterface(),
PreUp: data.GetPreup(),
PostDown: data.GetPostdown(),
PostUp: data.GetPostup(),
IsPending: data.GetIspending(),
PublicKey: data.GetPublickey(),
@@ -240,7 +240,7 @@ func (s *NodeServiceServer) UpdateNode(ctx context.Context, req *nodepb.UpdateNo
Endpoint: newnode.Endpoint,
Password: newnode.Password,
Interface: newnode.Interface,
Preup: newnode.PreUp,
Postdown: newnode.PostDown,
Postup: newnode.PostUp,
Nodenetwork: newnode.Network,
Ispending: newnode.IsPending,