From 819812f753011adf042948db1e134b975ddddc81 Mon Sep 17 00:00:00 2001 From: Tim Wilkinson Date: Wed, 20 Sep 2023 16:13:34 -0700 Subject: [PATCH] Which to "support" rather than "ignore" supernode to avoid double-negative (#942) --- files/etc/cron.hourly/check-supernodes | 2 +- files/www/cgi-bin/advancedconfig | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/files/etc/cron.hourly/check-supernodes b/files/etc/cron.hourly/check-supernodes index c41995de..3ee3c561 100755 --- a/files/etc/cron.hourly/check-supernodes +++ b/files/etc/cron.hourly/check-supernodes @@ -47,7 +47,7 @@ if c:get("aredn", "@supernode[0]", "enable") == "1" then end -- Ignore supernodes? -if c:get("aredn", "@supernode[0]", "ignore") == "1" then +if c:get("aredn", "@supernode[0]", "support") == "0" then os.exit(0) end diff --git a/files/www/cgi-bin/advancedconfig b/files/www/cgi-bin/advancedconfig index 41f40047..4912aed0 100755 --- a/files/www/cgi-bin/advancedconfig +++ b/files/www/cgi-bin/advancedconfig @@ -295,10 +295,10 @@ local settings = { }, { category = "Supernode Settings", - key = "aredn.@supernode[0].ignore", + key = "aredn.@supernode[0].support", type = "boolean", - desc = "Ignore any Supernodes found on the mesh

aredn.@supernode[0].ignore", - default = "0" + desc = "Use any Supernodes found on the mesh

aredn.@supernode[0].support", + default = "1" }, { category = "Network Tools",