From a73eafd6c9578a9779e1d447cc194e6ceacbb08e Mon Sep 17 00:00:00 2001 From: Ycarus Date: Thu, 14 Jun 2018 15:21:03 +0200 Subject: [PATCH] Disable router IPv6 send when IPv6 is disabled --- luci-app-openmptcprouter/luasrc/controller/openmptcprouter.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/luci-app-openmptcprouter/luasrc/controller/openmptcprouter.lua b/luci-app-openmptcprouter/luasrc/controller/openmptcprouter.lua index a64924173..ab2f83701 100644 --- a/luci-app-openmptcprouter/luasrc/controller/openmptcprouter.lua +++ b/luci-app-openmptcprouter/luasrc/controller/openmptcprouter.lua @@ -211,6 +211,9 @@ function settings_add() ucic:set("firewall",ucic:get_first("firewall","defaults"),"disable_ipv6",disable_ipv6) ucic:save("firewall") ucic:commit("firewall") + ucic:set("dhcp","lan","ra_default",disable_ipv6) + ucic:save("dhcp") + ucic:commit("dhcp") if disable_ipv6 == 1 then ucic:set("shadowsocks-libev","hi","local_address","0.0.0.0") else