luci-proto-yggdrasil: correctness fixes
authorPaul Donald <redacted>
Tue, 26 May 2026 10:02:08 +0000 (13:02 +0300)
committerPaul Donald <redacted>
Wed, 27 May 2026 12:49:47 +0000 (15:49 +0300)
Signed-off-by: Paul Donald <redacted>
protocols/luci-proto-yggdrasil/htdocs/luci-static/resources/protocol/yggdrasil.js

index 87cd7e9f1c328802caee2143d1d969c27fed5c0c..08a579b6c00637bd91328ae9d10906dfb2422680 100644 (file)
@@ -311,7 +311,7 @@ return network.registerProtocol('yggdrasil',
                                form.HiddenValue,
                                'hidden_value',
                                ' ',
-                               _('%s is an independent project that aims to reduce latency of a connection over Yggdrasil network transparently, utilizing NAT traversal to bypass intermediary nodes.'.format('<a href="https://github.com/one-d-wide/yggdrasil-jumper">Yggdrasil Jumper</a>'))
+                               _('%s is an independent project that aims to reduce latency of a connection over Yggdrasil network transparently, utilizing NAT traversal to bypass intermediary nodes.').format('<a href="https://github.com/one-d-wide/yggdrasil-jumper">Yggdrasil Jumper</a>')
                                        + ' ' + _('It periodically probes for active sessions and automatically establishes direct peerings over internet with remote nodes running Yggdrasil Jumper without requiring firewall or port configuration.')
                        );
 
@@ -329,7 +329,7 @@ return network.registerProtocol('yggdrasil',
                        // Unlock enable option if jumper is installed
                        callIsJumperInstalled().then(function(isInstalled) {
                                if (isInstalled) {
-                                       var o = s.children.find(function(o) { return o.option == "jumper_enable"; });
+                                       var o = s.children.find(function(enableOpt) { return enableOpt.option == "jumper_enable"; });
                                        o.readonly = false;
                                        // Explicit rerendering request isn't needed because the protocol tab
                                        // is constructed only after all async functions is done
git clone https://git.99rst.org/PROJECT