Signed-off-by: ye.sijun <junnplus@gmail.com>
This commit is contained in:
ye.sijun 2022-01-03 16:10:09 +08:00
parent 5d2c03e8b0
commit a8e223faf4
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@ func GetUsedSubnets(n NetUtil) ([]*net.IPNet, error) {
return append(subnets, liveSubnets...), nil return append(subnets, liveSubnets...), nil
} }
// GetFreeIPv6NetworkSubnet returns a unused ipv4 subnet // GetFreeIPv4NetworkSubnet returns a unused ipv4 subnet
func GetFreeIPv4NetworkSubnet(usedNetworks []*net.IPNet) (*types.Subnet, error) { func GetFreeIPv4NetworkSubnet(usedNetworks []*net.IPNet) (*types.Subnet, error) {
// the default podman network is 10.88.0.0/16 // the default podman network is 10.88.0.0/16
// start locking for free /24 networks // start locking for free /24 networks