mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-29 23:46:23 +08:00
missing bracket
This commit is contained in:
parent
b51ee38db5
commit
72cce05ae6
1 changed files with 3 additions and 2 deletions
|
|
@ -230,8 +230,9 @@ func CreateNode(node *models.Node) error {
|
|||
return err
|
||||
}
|
||||
node.Address.Mask = net.CIDRMask(cidr.Mask.Size())
|
||||
} else if !IsIPUnique(node.Network, node.Address.String(), database.NODES_TABLE_NAME, false) {
|
||||
return fmt.Errorf("invalid address: ipv4 " + node.Address.String() + " is not unique")
|
||||
} else if !IsIPUnique(node.Network, node.Address.String(), database.NODES_TABLE_NAME, false) {
|
||||
return fmt.Errorf("invalid address: ipv4 " + node.Address.String() + " is not unique")
|
||||
}
|
||||
}
|
||||
|
||||
if node.Address6.IP == nil {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue