From: Jo-Philipp Wich Date: Wed, 14 Nov 2018 19:59:26 +0000 (+0100) Subject: luci-mod-network: require unique MACs for DHCP leases X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f1efd71ba0ebd9327765f54e2ccee51fcd631e05;p=oweals%2Fluci.git luci-mod-network: require unique MACs for DHCP leases Signed-off-by: Jo-Philipp Wich --- diff --git a/modules/luci-mod-network/luasrc/model/cbi/admin_network/dhcp.lua b/modules/luci-mod-network/luasrc/model/cbi/admin_network/dhcp.lua index e886d8422..0be1b3fb5 100644 --- a/modules/luci-mod-network/luasrc/model/cbi/admin_network/dhcp.lua +++ b/modules/luci-mod-network/luasrc/model/cbi/admin_network/dhcp.lua @@ -295,7 +295,7 @@ function name.remove(self, section) end mac = s:option(Value, "mac", translate("MAC-Address")) -mac.datatype = "list(macaddr)" +mac.datatype = "list(unique(macaddr))" mac.rmempty = true function mac.cfgvalue(self, section)