mirror of
https://gitea.elkins.co/Networking/ccl.git
synced 2025-03-04 09:18:48 -06:00
allocate c.Sysctl if necessary
This commit is contained in:
parent
797a354b30
commit
fa09942631
@ -178,7 +178,10 @@ func (c *Container) CreateCommands() cmd.Set {
|
||||
nets := map[string]types.PerNetworkOptions{}
|
||||
dns := []net.IP{}
|
||||
for i := range c.Networks {
|
||||
if !c.Networks[i].IPv6.Bool {
|
||||
if c.Networks[i].IPv6.Valid && !c.Networks[i].IPv6.Bool {
|
||||
if c.Sysctl == nil {
|
||||
c.Sysctl = make(map[string]string, 1)
|
||||
}
|
||||
c.Sysctl["net.ipv6.conf."+c.Networks[i].Name+".accept_ra"] = "0"
|
||||
}
|
||||
ips := []net.IP{}
|
||||
|
Loading…
x
Reference in New Issue
Block a user