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

Always use device in priority

This commit is contained in:
Ycarus (Yannick Chabanois) 2021-07-09 18:40:16 +02:00
parent 8aa3927d7c
commit ae8371b2cc
5 changed files with 14 additions and 10 deletions

View file

@ -1156,7 +1156,7 @@ function interfaces_status()
end
duplicatemac = false
if mac ~= "" and mac ~= nil and not (section["ifname"] ~= nil and section["ifname"]:match("^@.*")) then
if mac ~= "" and mac ~= nil and not (section["ifname"] ~= nil and section["ifname"]:match("^@.*")) and not (ifname ~= nil and ifname:match("%.")) then
if allmac[mac] then
connectivity = "ERROR"
duplicatemac = true