luci-mod-network: issue with breakdown of dnsmasq after duplication of static IP... 4709/head
authorOleksandr Pastushkov <oleks.pastushkov@gmail.com>
Sun, 3 Jan 2021 22:58:56 +0000 (00:58 +0200)
committerOleksandr Pastushkov <oleks.pastushkov@gmail.com>
Mon, 4 Jan 2021 00:07:45 +0000 (02:07 +0200)
commit463e910119813aaea0755ff5c16c91ce412a8cbb
tree44c5d757d74908ca36f084b24d44df7afe21b917
parent2448834b9aa9f26055d8ad8b0fc3367888829abd
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>
modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js