From fe3a2548240d04f2fa3e47f334ee55e277057e07 Mon Sep 17 00:00:00 2001 From: Roberto Hueso Gómez Date: Fri, 31 Jul 2020 12:58:43 +0200 Subject: #990 Fix WOL call for RemotePC This patch fixes the call to the WOL rest function by adapting it to the new API. --- admin/WebConsole/rest/remotepc.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'admin') diff --git a/admin/WebConsole/rest/remotepc.php b/admin/WebConsole/rest/remotepc.php index 4b8270aa..e11f8870 100644 --- a/admin/WebConsole/rest/remotepc.php +++ b/admin/WebConsole/rest/remotepc.php @@ -83,7 +83,7 @@ $app->post('/ous/:ouid/images/:imageid/reserve(/)', 'validateApiKey', // Choose older not-reserved client with image installed and get ogAdmServer data. $cmd->texto = <<campos["nombreordenador"]; $clntip = $rs->campos["ip"]; $clntmac = $rs->campos["mac"]; + $clntnetmask = $rs->campos["mascara"]; $agentkey = $rs->campos["agentkey"]; $disk = $rs->campos["numdisk"]; $part = $rs->campos["numpar"]; @@ -128,7 +129,7 @@ EOD; // TODO: if client is busy????? if ($app->settings['debug']) writeRemotepcLog($app->request()->getResourceUri(). ": Send boot command through ogAdmServer: iph=$clntip,mac=$clntmac."); - wol(1, [$clntmac], [$clntip]); + wol(1, [$clntmac], [$clntip], [$clntnetmask]); // Send WOL command to client repository. $repo[$repoip]['url'] = "https://$repoip/opengnsys/rest/repository/poweron"; $repo[$repoip]['header'] = Array("Authorization: ".$repokey); -- cgit v1.2.3-18-g5258