From f48999cb7adb500321c5eb7fe72a83840f366dbb Mon Sep 17 00:00:00 2001 From: Alexander Ivanov Date: Sun, 13 Jul 2025 17:07:02 +0800 Subject: [PATCH] luci-proto-yggdrasil: fix interface selection Package `yggdrasil` doesn't support network names and aliases. Signed-off-by: Alexander Ivanov --- .../htdocs/luci-static/resources/protocol/yggdrasil.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/protocols/luci-proto-yggdrasil/htdocs/luci-static/resources/protocol/yggdrasil.js b/protocols/luci-proto-yggdrasil/htdocs/luci-static/resources/protocol/yggdrasil.js index 4cfa62583f..87cd7e9f1c 100644 --- a/protocols/luci-proto-yggdrasil/htdocs/luci-static/resources/protocol/yggdrasil.js +++ b/protocols/luci-proto-yggdrasil/htdocs/luci-static/resources/protocol/yggdrasil.js @@ -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"));