mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
This commit is contained in:
parent
e8234223ba
commit
80cb838778
1 changed files with 2 additions and 2 deletions
|
@ -813,7 +813,7 @@ function interfaces_status()
|
|||
end
|
||||
|
||||
local publicIP = uci:get("openmptcprouter",interface,"publicip") or ""
|
||||
if publicIP == "" then
|
||||
if ifname ~= nil and publicIP == "" then
|
||||
publicIP = ut.trim(sys.exec("omr-ip-intf " .. ifname))
|
||||
end
|
||||
local whois = ""
|
||||
|
@ -826,7 +826,7 @@ function interfaces_status()
|
|||
end
|
||||
|
||||
local mtu = uci:get("openmptcprouter",interface,"mtu") or ""
|
||||
if mtu == "" then
|
||||
if mtu == "" and ifname ~= nil then
|
||||
mtu = ut.trim(sys.exec("cat /sys/class/net/" .. ifname .. "/mtu | tr -d '\n'"))
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue