luci-mod-network: tighten MAC check regex
authorPaul Donald <redacted>
Mon, 23 Mar 2026 18:10:01 +0000 (19:10 +0100)
committerPaul Donald <redacted>
Mon, 23 Mar 2026 18:10:01 +0000 (19:10 +0100)
commit761c2cda5f098dcb263f788cb965b000f0ebd6c1
treecdae0c9ea43ea7cdee1f5a9440ac40c6fca0ed45
parent59465752a8b0bb2379b613642505b8bd28854e1e
luci-mod-network: tighten MAC check regex

dnsmasq behaviour changed slightly and MACs separated
by hyphen are no longer accepted. Accept only colon
separator when validating. Also enforce hex doublets,
i.e. 00 instead of 0.

Signed-off-by: Paul Donald <redacted>
modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js
git clone https://git.99rst.org/PROJECT