1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-02-15 03:51:51 +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

View file

@ -167,6 +167,7 @@ set network.lan.metric=2048
set network.lan.ipv6=0
set network.lan.delegate=0
set network.lan.addlatency=0
set dhcp.lan.dhcpv4='server'
EOF
uci -q batch <<-EOF
@ -405,5 +406,6 @@ fi
uci -q commit macvlan
uci -q commit network
uci -q commit dhcp
rm -f /tmp/luci-indexcache
exit 0