summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-yggdrasil/htdocs/luci-static/resources/view/yggdrasil/settings.js
diff options
context:
space:
mode:
authorGeorge Iv <zhoreeq@users.noreply.github.com>2021-07-21 19:23:49 +0300
committerGeorge Iv <zhoreeq@users.noreply.github.com>2021-07-21 19:23:49 +0300
commit3953b1a5b249b09e566ca1ec4ce2fb4e23cdf69e (patch)
tree7c0f35bd972207151c046047ffb17b3df7af23a5 /applications/luci-app-yggdrasil/htdocs/luci-static/resources/view/yggdrasil/settings.js
parentb7ba9e2d2da570537e7979251ee5d8e6d4e292a9 (diff)
luci-app-yggdrasil: Update to support v0.4.0 config
Signed-off-by: George Iv <zhoreeq@users.noreply.github.com>
Diffstat (limited to 'applications/luci-app-yggdrasil/htdocs/luci-static/resources/view/yggdrasil/settings.js')
-rw-r--r--applications/luci-app-yggdrasil/htdocs/luci-static/resources/view/yggdrasil/settings.js30
1 files changed, 12 insertions, 18 deletions
diff --git a/applications/luci-app-yggdrasil/htdocs/luci-static/resources/view/yggdrasil/settings.js b/applications/luci-app-yggdrasil/htdocs/luci-static/resources/view/yggdrasil/settings.js
index 4278386f53..8bc63dadc2 100644
--- a/applications/luci-app-yggdrasil/htdocs/luci-static/resources/view/yggdrasil/settings.js
+++ b/applications/luci-app-yggdrasil/htdocs/luci-static/resources/view/yggdrasil/settings.js
@@ -12,12 +12,6 @@ return view.extend({
s.anonymous = true;
s.option(form.Value, "IfName", _("Yggdrasil's network interface name"));
- s.option(form.Value, "LinkLocalTCPPort", _("Link-local TCP port"),
- _("The port number to be used for the link-local TCP listeners for the "+
- "configured MulticastInterfaces. This option does not affect listeners" +
- "specified in the Listen option. Unless you plan to firewall link-local" +
- "traffic, it is best to leave this as the default value of 0. This " +
- "option cannot currently be changed by reloading config during runtime."));
s.option(form.Flag, "NodeInfoPrivacy", _("Enable NodeInfo privacy"),
_("By default, nodeinfo contains some defaults including the platform," +
@@ -35,17 +29,6 @@ return view.extend({
}
s.option(form.Value, "IfMTU", _("MTU size for the interface"));
- s.option(form.Value, "SwitchOptions_MaxTotalQueueSize",
- _("Maximum size of all switch queues combined"));
-
- o = m.section(form.TableSection, "multicast_interface", _("Multicast interfaces"),
- _("Regular expressions for which interfaces multicast peer discovery " +
- "should be enabled on. If none specified, multicast peer discovery is " +
- "disabled. The default value is .* which uses all interfaces."));
- o.option(form.Value, "name", _("Interface name"),
- _("Set .* to multicast on all interfaces"));
- o.anonymous = true;
- o.addremove = true;
o = m.section(form.TableSection, "listen_address", _("Listen addresses"),
_("Listen addresses for incoming connections. You will need to add " +
@@ -53,12 +36,23 @@ return view.extend({
"Multicast peer discovery will work regardless of any listeners set " +
"here. Each listener should be specified in URI format as above, e.g. " +
"tcp://0.0.0.0:0 or tcp://[::]:0 to listen on all interfaces."));
- _("Address to listen for incoming connections"),
o.option(form.Value, "uri",
_("e.g. tcp://0.0.0.0:0 or tcp://[::]:0"));
o.anonymous = true;
o.addremove = true;
+ o = m.section(form.TableSection, "multicast_interface", _("Multicast interface"),
+ _("Configuration for which interfaces multicast peer discovery should be enabled on. " +
+ "Regex is a regular expression which is matched against an interface name, and interfaces use the first configuration that they match gainst. " +
+ "Beacon configures whether or not the node should send link-local multicast beacons to advertise their presence, while listening for incoming connections on Port. " +
+ "Listen controls whether or not the node listens for multicast beacons and opens outgoing connections."));
+ o.option(form.Value, "regex", _("Regular expression"));
+ o.option(form.Flag, "beacon", _("Send beacons"));
+ o.option(form.Flag, "listen", _("Listen for beacons"));
+ o.option(form.Value, "port", _("Link-local port"));
+ o.anonymous = true;
+ o.addremove = true;
+
return m.render();
}
});