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

Fix status page when proto is modemmanager

This commit is contained in:
Ycarus (Yannick Chabanois) 2022-03-16 20:54:34 +01:00
parent eb87da4feb
commit a4d9f6dd39

View file

@ -1160,7 +1160,7 @@ function interfaces_status()
--end
duplicateif = false
if ifname ~= "" and ifname ~= nil and not (section["device"] ~= nil and section["device"]:match("^@.*")) then
if ifname ~= "" and ifname ~= nil and not (section["device"] ~= nil and section["device"]:match("^@.*")) and (proto == "static" or proto == "dhcp") then
if allintf[ifname] then
connectivity = "ERROR"
duplicateif = true