summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-mod-network/luasrc/model
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2018-11-14 20:59:26 +0100
committerJo-Philipp Wich <jo@mein.io>2018-11-14 20:59:26 +0100
commitf1efd71ba0ebd9327765f54e2ccee51fcd631e05 (patch)
treec8116a81d66696946eca58cc282b3af2057a1a65 /modules/luci-mod-network/luasrc/model
parent7e26fa89e9d0109b42c84e2674bbcbae530aa356 (diff)
luci-mod-network: require unique MACs for DHCP leases
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules/luci-mod-network/luasrc/model')
-rw-r--r--modules/luci-mod-network/luasrc/model/cbi/admin_network/dhcp.lua2
1 files changed, 1 insertions, 1 deletions
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 e886d84224..0be1b3fb58 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("<abbr title=\"Media Access Control\">MAC</abbr>-Address"))
-mac.datatype = "list(macaddr)"
+mac.datatype = "list(unique(macaddr))"
mac.rmempty = true
function mac.cfgvalue(self, section)