BUGFIX: enable accept_rtadv and rtsold_enable
This commit is contained in:
parent
6ead474a78
commit
dbe9622a01
@ -340,7 +340,7 @@ func configureDhcpOrAcceptRtadv(jail *Jail, ipproto int, enable bool) error {
|
|||||||
|
|
||||||
if ipproto == IPv6 {
|
if ipproto == IPv6 {
|
||||||
key = fmt.Sprintf("%s_ipv6", key)
|
key = fmt.Sprintf("%s_ipv6", key)
|
||||||
value = "inet6 auto_linklocal accept_rtadv autoconf"
|
value = "\"inet6 auto_linklocal accept_rtadv autoconf\""
|
||||||
}
|
}
|
||||||
|
|
||||||
if enable == true {
|
if enable == true {
|
||||||
@ -363,7 +363,7 @@ func checkRtsold(jail *Jail) error {
|
|||||||
if strings.Contains(jail.Config.Ip6_addr, "accept_rtadv") == false {
|
if strings.Contains(jail.Config.Ip6_addr, "accept_rtadv") == false {
|
||||||
return fmt.Errorf("Must set at least one ip6_addr to accept_rtadv!\n")
|
return fmt.Errorf("Must set at least one ip6_addr to accept_rtadv!\n")
|
||||||
}
|
}
|
||||||
err := enableRcKeyValue(jail.ConfigPath, "rtsold_enable", "yes")
|
err := enableRcKeyValue(fmt.Sprintf("%s/etc/rc.conf", jail.RootPath), "rtsold_enable", "yes")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("ERROR setting rtsold_enable=YES with sysrc for jail %s: %s\n", jail.Name, err)
|
return fmt.Errorf("ERROR setting rtsold_enable=YES with sysrc for jail %s: %s\n", jail.Name, err)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user