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

Merge pull request #290 from Ysurac/develop

sync
This commit is contained in:
suyuan 2022-11-30 22:03:14 +08:00 committed by GitHub
commit a5cb9c60d1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View file

@ -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