1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-03-09 15:40:03 +00:00

Fix error in status page for IPv6

This commit is contained in:
Ycarus 2018-08-03 00:52:52 +02:00
parent 3b09fe9b42
commit d52d20d462

View file

@ -672,7 +672,7 @@ function interfaces_status()
if type(ipv6_result) == "table" and #ipv6_result > 0 then
local ipv6_addr_test
for k,v in ipairs(ipv6_result) do
if v.RecursiveDnsServer then
if v.RecursiveDnsServer and type(v.RecursiveDnsServer) ~= "table" then
ipv6_addr_test = sys.exec('ip -6 addr | grep ' .. v.RecursiveDnsServer)
end
end