mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-02 18:04:23 +08:00
added run server update on grpc create
This commit is contained in:
parent
a0f74946b7
commit
566a6df49a
1 changed files with 2 additions and 0 deletions
|
@ -107,6 +107,8 @@ func (s *NodeServiceServer) CreateNode(ctx context.Context, req *nodepb.Object)
|
|||
Type: nodepb.NODE_TYPE,
|
||||
}
|
||||
|
||||
runServerUpdate(&node, true)
|
||||
|
||||
go func(node *models.Node) {
|
||||
if node.UDPHolePunch == "yes" {
|
||||
var currentServerNode, getErr = logic.GetNetworkServerLeader(node.Network)
|
||||
|
|
Loading…
Add table
Reference in a new issue