mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-02-15 03:51:51 +00:00
Disable all DHCP IPv6 when IPv6 disabled
This commit is contained in:
parent
b13509bd31
commit
aa091f544a
1 changed files with 2 additions and 2 deletions
|
@ -868,12 +868,12 @@ function set_ipv6_state(disable_ipv6)
|
|||
ucic:set("firewall",ucic:get_first("firewall","defaults"),"disable_ipv6",disable_ipv6)
|
||||
ucic:save("firewall")
|
||||
ucic:commit("firewall")
|
||||
if disable_ipv6 == 1 then
|
||||
if disable_ipv6 == "1" then
|
||||
ucic:set("dhcp","lan","ra_default","0")
|
||||
else
|
||||
ucic:set("dhcp","lan","ra_default","1")
|
||||
end
|
||||
if disable_ipv6 == 1 then
|
||||
if disable_ipv6 == "1" then
|
||||
luci.sys.call("uci -q del dhcp.lan.dhcpv6")
|
||||
luci.sys.call("uci -q del dhcp.lan.ra")
|
||||
ucic:set("shadowsocks-libev","hi","local_address","0.0.0.0")
|
||||
|
|
Loading…
Reference in a new issue