mirror of
https://github.com/gravitl/netmaker.git
synced 2025-02-28 01:52:58 +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,
|
Type: nodepb.NODE_TYPE,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
runServerUpdate(&node, true)
|
||||||
|
|
||||||
go func(node *models.Node) {
|
go func(node *models.Node) {
|
||||||
if node.UDPHolePunch == "yes" {
|
if node.UDPHolePunch == "yes" {
|
||||||
var currentServerNode, getErr = logic.GetNetworkServerLeader(node.Network)
|
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
|
//deal with DNS
|
||||||
if newNode.DNSOn != "yes" && shouldDNSChange && cfg.Node.Interface != "" {
|
if newNode.DNSOn != "yes" && shouldDNSChange && cfg.Node.Interface != "" {
|
||||||
|
|
Loading…
Reference in a new issue