mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-28 19:11:57 +08:00
change order of operations
This commit is contained in:
@@ -622,7 +622,7 @@ func GetNetworkServerNodeID(network string) (string, error) {
|
||||
|
||||
// validateServer - make sure servers dont change port or address
|
||||
func validateServer(currentNode, newNode *models.Node) bool {
|
||||
return (newNode.Address != currentNode.Address ||
|
||||
newNode.ListenPort != currentNode.ListenPort ||
|
||||
newNode.IsServer != "yes")
|
||||
return (newNode.Address == currentNode.Address &&
|
||||
newNode.ListenPort == currentNode.ListenPort &&
|
||||
newNode.IsServer == "yes")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user