summaryrefslogtreecommitdiffstats
path: root/modules-available/rebootcontrol/hooks
diff options
context:
space:
mode:
authorSimon Rettberg2020-09-03 12:06:07 +0200
committerSimon Rettberg2020-09-03 12:06:07 +0200
commit5574e028dc0ed802d4954b577151cc09c9687ee5 (patch)
tree5c5e5d49740aa0ee8f80ad664f2408d89eecc65b /modules-available/rebootcontrol/hooks
parent[serversetup-bwlp-ipxe/rebootcontrol] Fix translations (diff)
downloadslx-admin-5574e028dc0ed802d4954b577151cc09c9687ee5.tar.gz
slx-admin-5574e028dc0ed802d4954b577151cc09c9687ee5.tar.xz
slx-admin-5574e028dc0ed802d4954b577151cc09c9687ee5.zip
[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.
Diffstat (limited to 'modules-available/rebootcontrol/hooks')
-rw-r--r--modules-available/rebootcontrol/hooks/cron.inc.php3
1 files changed, 3 insertions, 0 deletions
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 => $_) {