mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Disable IPv6 check on interfaces
This commit is contained in:
parent
5b5094c0bb
commit
5321d0692f
1 changed files with 18 additions and 20 deletions
|
@ -1078,26 +1078,24 @@ function interfaces_status()
|
||||||
|
|
||||||
-- Detect if WAN get an IPv6
|
-- Detect if WAN get an IPv6
|
||||||
local ipv6_discover = "NONE"
|
local ipv6_discover = "NONE"
|
||||||
if ifname ~= "" and ifname ~= nil and mArray.openmptcprouter["ipv6"] == "enabled" then
|
-- Disabled, seems to take a too much time in some case
|
||||||
local ipv6_result = ""
|
-- if ifname ~= "" and ifname ~= nil and mArray.openmptcprouter["ipv6"] == "enabled" then
|
||||||
local ipv6_result = _ipv6_discover(ifname)
|
-- local ipv6_result = ""
|
||||||
if type(ipv6_result) == "table" and #ipv6_result > 0 then
|
-- local ipv6_result = _ipv6_discover(ifname)
|
||||||
local ipv6_addr_test
|
-- if type(ipv6_result) == "table" and #ipv6_result > 0 then
|
||||||
for k,v in ipairs(ipv6_result) do
|
-- local ipv6_addr_test
|
||||||
if v.RecursiveDnsServer then
|
-- for k,v in ipairs(ipv6_result) do
|
||||||
if type(v.RecursiveDnsServer) ~= "table" then
|
-- if v.RecursiveDnsServer then
|
||||||
ipv6_addr_test = sys.exec("ip -6 addr | grep " .. v.RecursiveDnsServer)
|
-- if type(v.RecursiveDnsServer) ~= "table" then
|
||||||
if ipv6_addr_test == "" then
|
-- ipv6_addr_test = sys.exec("ip -6 addr | grep " .. v.RecursiveDnsServer)
|
||||||
ipv6_discover = "DETECTED"
|
-- if ipv6_addr_test == "" then
|
||||||
--if connectivity == "OK" then
|
-- ipv6_discover = "DETECTED"
|
||||||
-- connectivity = "WARNING"
|
-- end
|
||||||
--end
|
-- end
|
||||||
end
|
-- end
|
||||||
end
|
-- end
|
||||||
end
|
-- end
|
||||||
end
|
-- end
|
||||||
end
|
|
||||||
end
|
|
||||||
local mtu = ""
|
local mtu = ""
|
||||||
local whois = ""
|
local whois = ""
|
||||||
local publicIP = ""
|
local publicIP = ""
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue