mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-06 01:07:41 +08:00
missing bracket
This commit is contained in:
@@ -233,6 +233,7 @@ func CreateNode(node *models.Node) error {
|
|||||||
} else if !IsIPUnique(node.Network, node.Address.String(), database.NODES_TABLE_NAME, false) {
|
} 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")
|
return fmt.Errorf("invalid address: ipv4 " + node.Address.String() + " is not unique")
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if node.Address6.IP == nil {
|
if node.Address6.IP == nil {
|
||||||
if parentNetwork.IsIPv6 == "yes" {
|
if parentNetwork.IsIPv6 == "yes" {
|
||||||
|
Reference in New Issue
Block a user