mirror of
https://gitea.elkins.co/Networking/ccl.git
synced 2025-03-09 12:41:40 -05:00
better append
This commit is contained in:
parent
93c5060fbf
commit
1239114bc1
@ -192,14 +192,10 @@ func (c *Container) CreateCommands() cmd.Set {
|
||||
ips = append(ips, c.Networks[i].IPv6Address)
|
||||
}
|
||||
if c.Networks[i].IPv4Addresses != nil {
|
||||
for _, ip := range c.Networks[i].IPv4Addresses {
|
||||
ips = append(ips, ip)
|
||||
}
|
||||
ips = append(ips, c.Networks[i].IPv4Addresses...)
|
||||
}
|
||||
if c.Networks[i].IPv6Addresses != nil {
|
||||
for _, ip := range c.Networks[i].IPv6Addresses {
|
||||
ips = append(ips, ip)
|
||||
}
|
||||
ips = append(ips, c.Networks[i].IPv6Addresses...)
|
||||
}
|
||||
nets[c.Networks[i].Name] = types.PerNetworkOptions{
|
||||
StaticIPs: ips,
|
||||
|
Loading…
x
Reference in New Issue
Block a user