Skip to content

Commit

Permalink
fix satellite WOL custom command
Browse files Browse the repository at this point in the history
  • Loading branch information
schorschii committed Mar 31, 2023
1 parent 64bce86 commit 9aac5c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/WakeOnLan.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public function wol($macs, $debugOutput=true) {
continue;
}
$program = 'wakeonlan';
if(!empty($server['COMMAND'])) $program = $server['COMMAND'];
if(!empty($server['command'])) $program = $server['command'];
$chunkCount = 1;
// ssh2_exec has a bug which throws "ssh2_exec(): Unable to request command execution on remote host" if the command is longer than 32KB, so we send our MACs in chunks of 1500 MACs which is ~30KB...
foreach(array_chunk($escapedMacs, 1500) as $escapedMacChunk) {
Expand Down

0 comments on commit 9aac5c5

Please sign in to comment.