mirror of
https://github.com/gravitl/netmaker.git
synced 2025-02-27 17:42:57 +08:00
Merge pull request #789 from gravitl/bugfix_v0.10.1_clientfix
Bugfix v0.10.1 clientfix
This commit is contained in:
commit
4d45523363
2 changed files with 8 additions and 1 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)
|
||||
|
|
|
@ -215,7 +215,12 @@ func NodeUpdate(client mqtt.Client, msg mqtt.Message) {
|
|||
}
|
||||
}
|
||||
}
|
||||
publishClientPeers(&cfg)
|
||||
pubErr := publishClientPeers(&cfg)
|
||||
if pubErr != nil {
|
||||
ncutils.Log("could not notify server to update peers after interface change")
|
||||
} else {
|
||||
ncutils.Log("signalled peer update to server")
|
||||
}
|
||||
}
|
||||
//deal with DNS
|
||||
if newNode.DNSOn != "yes" && shouldDNSChange && cfg.Node.Interface != "" {
|
||||
|
|
Loading…
Reference in a new issue