mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-02-12 10:31:51 +00:00
Fix interface display in status page
This commit is contained in:
parent
77afcb8d32
commit
c0503fcc06
1 changed files with 4 additions and 2 deletions
|
@ -1074,8 +1074,10 @@ function interfaces_status()
|
|||
mArray.openmptcprouter.dhcpd[itf].range_end = range_end
|
||||
mArray.openmptcprouter.dhcpd[itf].netmask = mask
|
||||
mArray.openmptcprouter.dhcpd[itf].leasetime = leasetime
|
||||
mArray.openmptcprouter.dhcpd[itf].router = mArray.openmptcprouter["local_addr"]
|
||||
mArray.openmptcprouter.dhcpd[itf].dns = mArray.openmptcprouter["local_addr"]
|
||||
local net = ntm:get_network(itf)
|
||||
local ipaddr = net:ipaddr() or ""
|
||||
mArray.openmptcprouter.dhcpd[itf].router = ipaddr
|
||||
mArray.openmptcprouter.dhcpd[itf].dns = ipaddr
|
||||
end
|
||||
for itf, option, value in dnsmasq:gmatch("option=(%w+),([%w:-]+),(%d+\.%d+\.%d+\.%d+)") do
|
||||
if mArray.openmptcprouter.dhcpd[itf] then
|
||||
|
|
Loading…
Reference in a new issue