1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-02-13 02:51:50 +00:00

Fix IPv6 status in status page

This commit is contained in:
Ycarus 2019-01-11 20:31:28 +01:00
parent 81dcb5ec58
commit 8a7dda07b4

View file

@ -644,7 +644,7 @@ function interfaces_status()
end
mArray.openmptcprouter["ipv6"] = "disabled"
if tonumber((sys.exec("sysctl net.ipv6.conf.all.disable_ipv6")):match(" %d+")) == 0 then
if uci:get("openmptcprouter","settings","disable_ipv6") ~= "1" then
mArray.openmptcprouter["ipv6"] = "enabled"
end