mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Disable router IPv6 send when IPv6 is disabled
This commit is contained in:
parent
1427fe3a15
commit
a73eafd6c9
1 changed files with 3 additions and 0 deletions
|
@ -211,6 +211,9 @@ function settings_add()
|
||||||
ucic:set("firewall",ucic:get_first("firewall","defaults"),"disable_ipv6",disable_ipv6)
|
ucic:set("firewall",ucic:get_first("firewall","defaults"),"disable_ipv6",disable_ipv6)
|
||||||
ucic:save("firewall")
|
ucic:save("firewall")
|
||||||
ucic:commit("firewall")
|
ucic:commit("firewall")
|
||||||
|
ucic:set("dhcp","lan","ra_default",disable_ipv6)
|
||||||
|
ucic:save("dhcp")
|
||||||
|
ucic:commit("dhcp")
|
||||||
if disable_ipv6 == 1 then
|
if disable_ipv6 == 1 then
|
||||||
ucic:set("shadowsocks-libev","hi","local_address","0.0.0.0")
|
ucic:set("shadowsocks-libev","hi","local_address","0.0.0.0")
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue