luci-mod-network: Add HTTPS SVCB record en/decoding to DHCP
authorPaul Donald <[email protected]>
Mon, 23 Jun 2025 00:43:17 +0000 (02:43 +0200)
committerPaul Donald <[email protected]>
Fri, 4 Jul 2025 12:45:33 +0000 (14:45 +0200)
commit25d10facab6cffbb42ec6add45db5693d30cb403
tree47081bbde7524e90f4158ef36c2246fb8579acf2
parent94ce1f01ec05ef9ed44ffd21c7a5af972c93ac3d
luci-mod-network: Add HTTPS SVCB record en/decoding to DHCP

This was a bit of code golf. Just for fun. Users seem to rely on HTTPS
record creation. The HTTPS record handling en/decodes compliant records
when tested against the RFC defined vectors, although there may exist
edge cases that are not compliant.

Escaped character encoding is not implemented (strict mode).

Any other arbitrary DNS record creation will be possible via the
addition of helper functions in this tools file.

Signed-off-by: Paul Donald <[email protected]>
(cherry picked from commit 9aeb34549f76f7cccd836a27012e2c61ae33805a)
modules/luci-mod-network/htdocs/luci-static/resources/tools/dnsrecordhandlers.js [new file with mode: 0644]
modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js