luci-mod-network: issue with breakdown of dnsmasq after duplication of static IP...
authorOleksandr Pastushkov <oleks.pastushkov@gmail.com>
Sun, 3 Jan 2021 22:58:56 +0000 (00:58 +0200)
committerRafał Miłecki <rafal@milecki.pl>
Thu, 27 May 2021 10:18:42 +0000 (12:18 +0200)
commit5047592f778a0a23d11a13b00a62f0f4126dad95
treecf870cc6af466e9ed012c4672745e269e4991b12
parenta5586749d0a8bf7380e95043f20684e6980bc3e3
luci-mod-network: issue with breakdown of dnsmasq after duplication of static IP was fixed

Before this commit, assigning the same static IP address to two
different hosts disabled dnsmasq.

Logic of adding a new static lease was modified. If user try to assign a
new MAC address to already reserved IP, old lease will be modified (list
of MAC addresses will be extended by new MAC) instead of creation a new lease with the same IP.

Signed-off-by: Oleksandr Pastushkov <oleks.pastushkov@gmail.com>
(cherry picked from commit 463e910119813aaea0755ff5c16c91ce412a8cbb)
modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js