mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-06 03:46:02 +08:00
maintain server listen port on failover/ingress deletion
This commit is contained in:
parent
4a9e5580fa
commit
e65d1cf600
1 changed files with 3 additions and 1 deletions
|
@ -265,7 +265,9 @@ func DeleteIngressGateway(networkName string, nodeid string) (models.Node, bool,
|
|||
}
|
||||
logger.Log(3, "deleting ingress gateway")
|
||||
wasFailover := node.Failover == "yes"
|
||||
node.UDPHolePunch = network.DefaultUDPHolePunch
|
||||
if node.IsServer != "yes" {
|
||||
node.UDPHolePunch = network.DefaultUDPHolePunch
|
||||
}
|
||||
node.LastModified = time.Now().Unix()
|
||||
node.IsIngressGateway = "no"
|
||||
node.IngressGatewayRange = ""
|
||||
|
|
Loading…
Add table
Reference in a new issue