mirror of
https://github.com/gravitl/netmaker.git
synced 2025-09-06 13:14:24 +08:00
networkaddress vice firstaddress
This commit is contained in:
parent
e364423beb
commit
2d87d14da4
1 changed files with 1 additions and 1 deletions
|
@ -182,7 +182,7 @@ func NormalizeCIDR(address string) (string, error) {
|
|||
IPNet.IP = net6.FirstAddress()
|
||||
} else {
|
||||
net4 := iplib.Net4FromStr(IPNet.String())
|
||||
IPNet.IP = net4.FirstAddress()
|
||||
IPNet.IP = net4.NetworkAddress()
|
||||
}
|
||||
return IPNet.String(), nil
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue