luci-mod-network: require unique MACs for DHCP leases
authorJo-Philipp Wich <jo@mein.io>
Wed, 14 Nov 2018 19:59:26 +0000 (20:59 +0100)
committerJo-Philipp Wich <jo@mein.io>
Wed, 14 Nov 2018 19:59:26 +0000 (20:59 +0100)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-mod-network/luasrc/model/cbi/admin_network/dhcp.lua

index e886d84224080d93b3e06f2df01efcb6516eae27..0be1b3fb58614054a347258b12e489a4f61598f3 100644 (file)
@@ -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)