summaryrefslogtreecommitdiffstats
path: root/admin/WebConsole/comandos/gestores/wakeonlan_repo.php
diff options
context:
space:
mode:
authorJose M. Guisado <jguisado@soleta.eu>2021-02-15 13:15:57 +0000
committerOpenGnSys Support Team <soporte-og@soleta.eu>2021-02-15 16:41:08 +0100
commit3d1c5b579e95ed20ed7552f404eecd0d7763d112 (patch)
tree2b63f8b423792aeb045a1efed349aeb12a5144f2 /admin/WebConsole/comandos/gestores/wakeonlan_repo.php
parentd3c553830b9f964d2d402932b5722ff7ea952384 (diff)
#990 restfunctions: wol: require clients and wol_type params only
Webconsole is directly querying the database to build the payload for requesting the ogServer a Wake On Lan. ogServer is expected to query the database for the netmask and mac parameters. Do not require the client request to have such parameters. Adjust calls to the wol php method by other OpenGnsys components. Fixes: a35b7c4 ("#990 Use client broadcast address on WoL")
Diffstat (limited to 'admin/WebConsole/comandos/gestores/wakeonlan_repo.php')
-rw-r--r--admin/WebConsole/comandos/gestores/wakeonlan_repo.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/admin/WebConsole/comandos/gestores/wakeonlan_repo.php b/admin/WebConsole/comandos/gestores/wakeonlan_repo.php
index 14fef3db..e71f1e51 100644
--- a/admin/WebConsole/comandos/gestores/wakeonlan_repo.php
+++ b/admin/WebConsole/comandos/gestores/wakeonlan_repo.php
@@ -17,9 +17,8 @@ preg_match_all('!\d{1}!', $atributos, $matches);
// Capturamos todas las ids
$macs = explode(";",$cadenamac);
$ips = explode(';',$cadenaip);
-$netmasks = explode(';', $netmasks_string);
-wol($matches[0][0], $macs, $ips, $netmasks);
+wol($matches[0][0], $ips);
// Recorremos las ids y vemos cual es la ip del repositorio
$repos = array();