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]>
Thu, 26 Jun 2025 15:10:58 +0000 (17:10 +0200)
commit9aeb34549f76f7cccd836a27012e2c61ae33805a
treec4b5565a69aa7f6fb02d7caa8d15630c607c8036
parent2e5de8d0d4028ba731369fa4c51cc706a8ba7497
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]>
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