luci-proto-wireguard: Add the option for setting ip6prefix.
authorJan Pazdziora <[email protected]>
Thu, 9 Jan 2025 18:49:51 +0000 (19:49 +0100)
committerPaul Donald <[email protected]>
Mon, 16 Jun 2025 11:24:57 +0000 (13:24 +0200)
Signed-off-by: Jan Pazdziora <[email protected]>
protocols/luci-proto-wireguard/htdocs/luci-static/resources/protocol/wireguard.js

index d0751bc9fbd22e00310356f60ac57b8c43e7bf11..e1e1835c7bad148eaef9efaed1afff795453aa7f 100644 (file)
@@ -193,6 +193,8 @@ return network.registerProtocol('wireguard', {
                        return true;
                };
 
+               o = s.taboption('advanced', form.DynamicList, 'ip6prefix', _('IPv6 routed prefix'), _('This is the prefix routed to you by your provider for use by clients'));
+               o.datatype = 'cidr6';
 
                // -- peers -----------------------------------------------------------------------