1
0
mirror of https://git.openwrt.org/project/luci.git synced 2025-10-14 01:32:18 +08:00

luci-proto-yggdrasil: fix interface selection

Package `yggdrasil` doesn't support network names and aliases.

Signed-off-by: Alexander Ivanov <saiv46.dev@gmail.com>
This commit is contained in:
Alexander Ivanov
2025-07-13 17:07:02 +08:00
committed by Paul Donald
parent 19057e3760
commit f48999cb7a

View File

@@ -276,7 +276,9 @@ return network.registerProtocol('yggdrasil',
o=ss.option(form.Value,"address",_("Peer URI"));
o.placeholder="tls://0.0.0.0:0"
o.validate=validateYggdrasilPeerUri;
ss.option(widgets.NetworkSelect,"interface",_("Peer interface"));
o=ss.option(widgets.DeviceSelect,"interface",_("Peer interface"));
o.noaliases=true;
o=s.taboption('peers', form.SectionValue, '_interfaces', form.TableSection, 'yggdrasil_%s_interface'.format(this.sid), _("Multicast rules"))
ss=o.subsection;
@@ -286,6 +288,7 @@ return network.registerProtocol('yggdrasil',
o=ss.option(widgets.DeviceSelect,"interface",_("Devices"));
o.multiple=true;
o.noaliases=true;
ss.option(form.Flag,"beacon",_("Send multicast beacon"));