mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-05 16:57:51 +08:00
networkaddress vice firstaddress
This commit is contained in:
@@ -182,7 +182,7 @@ func NormalizeCIDR(address string) (string, error) {
|
|||||||
IPNet.IP = net6.FirstAddress()
|
IPNet.IP = net6.FirstAddress()
|
||||||
} else {
|
} else {
|
||||||
net4 := iplib.Net4FromStr(IPNet.String())
|
net4 := iplib.Net4FromStr(IPNet.String())
|
||||||
IPNet.IP = net4.FirstAddress()
|
IPNet.IP = net4.NetworkAddress()
|
||||||
}
|
}
|
||||||
return IPNet.String(), nil
|
return IPNet.String(), nil
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user