luci-proto-wireguard: fix fwmark validation to allow 32 bit values
authorJo-Philipp Wich <jo@mein.io>
Wed, 2 Jun 2021 18:35:32 +0000 (14:35 -0400)
committerJo-Philipp Wich <jo@mein.io>
Sat, 12 Jun 2021 17:23:42 +0000 (19:23 +0200)
commita6a6d61d9cc0fb1e4050cc6267ae7ff445b91260
tree31d44582ea214d59c08c47fa792541854c482dfb
parent49e25bd03eb2c43eff1c31276da17563eb275a77
luci-proto-wireguard: fix fwmark validation to allow 32 bit values

The iptables mark field is 32 bits wide, which is 4 bytes and so 8 hex
characters. Fix the fwmark validation to allow 8 characters in the hex
string.

Fixes: #5098
Suggested-by: Robert <32970961+differentblue@users.noreply.github.com>
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit bc1015f7db57506b2468846f79dbd5bfe0dbea7a)
protocols/luci-proto-wireguard/htdocs/luci-static/resources/protocol/wireguard.js