diff --git a/luci-app-openmptcprouter/luasrc/controller/openmptcprouter.lua b/luci-app-openmptcprouter/luasrc/controller/openmptcprouter.lua index f03619740..47acbc66a 100644 --- a/luci-app-openmptcprouter/luasrc/controller/openmptcprouter.lua +++ b/luci-app-openmptcprouter/luasrc/controller/openmptcprouter.lua @@ -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")