From 5574e028dc0ed802d4954b577151cc09c9687ee5 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Thu, 3 Sep 2020 12:06:07 +0200 Subject: [rebootcontrol] WOL: Make UDP-Port and c2c discovery configurable The port setting only applies to WOL-packets sent from the satellite server. Testing the reachability of client subnets between each other is usually pointless, since a subnet that is reachable from another subnet can also be reached form the satelitte server, unless some fancy firewall rules are in place. --- modules-available/rebootcontrol/hooks/cron.inc.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'modules-available/rebootcontrol/hooks') diff --git a/modules-available/rebootcontrol/hooks/cron.inc.php b/modules-available/rebootcontrol/hooks/cron.inc.php index d637d3f5..67e17c83 100644 --- a/modules-available/rebootcontrol/hooks/cron.inc.php +++ b/modules-available/rebootcontrol/hooks/cron.inc.php @@ -211,6 +211,9 @@ while ($row = $res->fetch(PDO::FETCH_ASSOC)) { * Try client to client */ +if (!Property::get(RebootControl::KEY_SCAN_CLIENT_TO_CLIENT)) + return; + // Query all possible combos $combos = []; foreach (Stuff::$subnets as $src => $_) { -- cgit v1.2.3-55-g7522