mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Fix IPv6 enable
This commit is contained in:
parent
a28b5b347d
commit
e9556c107c
3 changed files with 7 additions and 2 deletions
|
@ -1197,6 +1197,7 @@ function set_ipv6_state(disable_ipv6)
|
|||
|
||||
-- Disable/Enable IPv6 in OpenMPTCProuter settings
|
||||
ucic:set("openmptcprouter","settings","disable_ipv6",disable_ipv6)
|
||||
ucic:save("openmptcprouter")
|
||||
ucic:commit("openmptcprouter")
|
||||
|
||||
-- Disable/Enable route announce of IPv6
|
||||
|
@ -1229,8 +1230,11 @@ function set_ipv6_state(disable_ipv6)
|
|||
ucic:set("dhcp","lan","ra_management","1")
|
||||
ucic:set("shadowsocks-libev","hi","local_address","::")
|
||||
end
|
||||
ucic:save("shadowsocks-libev")
|
||||
ucic:commit("shadowsocks-libev")
|
||||
ucic:save("dhcp")
|
||||
ucic:commit("dhcp")
|
||||
luci.sys.exec("/etc/init.d/omr-6in4 restart >/dev/null 2>&1")
|
||||
--if disable_ipv6 == "1" then
|
||||
-- luci.sys.exec("/etc/init.d/odhcpd stop >/dev/null 2>&1")
|
||||
-- luci.sys.exec("/etc/init.d/odhcpd disable >/dev/null 2>&1")
|
||||
|
@ -1290,7 +1294,7 @@ local methods = {
|
|||
disableipv6 = {
|
||||
args = { disable_ipv6 = 0 },
|
||||
call = function(args)
|
||||
disableipv6(args.disable_ipv6)
|
||||
set_ipv6_disable(args.disable_ipv6)
|
||||
end
|
||||
},
|
||||
externalcheck = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue