diff options
Diffstat (limited to 'admin/WebConsole/includes/restfunctions.php')
-rw-r--r-- | admin/WebConsole/includes/restfunctions.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/admin/WebConsole/includes/restfunctions.php b/admin/WebConsole/includes/restfunctions.php index 81821ff9..88e486ac 100644 --- a/admin/WebConsole/includes/restfunctions.php +++ b/admin/WebConsole/includes/restfunctions.php @@ -35,6 +35,7 @@ define('OG_REST_CMD_GET_SCHEDULE', 'schedule/get'); define('OG_REST_PARAM_CLIENTS', 'clients'); define('OG_REST_PARAM_ADDR', 'addr'); define('OG_REST_PARAM_MAC', 'mac'); +define('OG_REST_PARAM_NETMASK', 'netmask'); define('OG_REST_PARAM_DISK', 'disk'); define('OG_REST_PARAM_PART', 'partition'); define('OG_REST_PARAM_RUN', 'run'); @@ -187,7 +188,7 @@ function clients($case, $ips) { return $trama_notificacion; } -function wol($type_wol, $macs, $ips) { +function wol($type_wol, $macs, $ips, $netmasks) { switch ($type_wol) { default: @@ -202,7 +203,8 @@ function wol($type_wol, $macs, $ips) { for($i=0; $i<count($macs); $i++) { $clients[] = array(OG_REST_PARAM_ADDR => $ips[$i], - OG_REST_PARAM_MAC => $macs[$i]); + OG_REST_PARAM_MAC => $macs[$i], + OG_REST_PARAM_NETMASK => $netmasks[$i]); } $data = array(OG_REST_PARAM_TYPE => $wol, |