GUACAMOLE-513: Add debug logging for sending WoL.

This commit is contained in:
Nick Couchman 2020-03-18 14:16:40 -04:00
parent 3d4a27607d
commit 3dc2591517
4 changed files with 8 additions and 0 deletions

View File

@ -532,6 +532,8 @@ void* guac_rdp_client_thread(void* data) {
/* If Wake-on-LAN is enabled, try to wake. */
if (settings->wol_send_packet) {
guac_client_log(client, GUAC_LOG_DEBUG, "Sending Wake-on-LAN packet, "
"and pausing for %d seconds.", settings->wol_wait_time);
if(guac_wol_wake(settings->wol_mac_addr, settings->wol_broadcast_addr,
settings->wol_wait_time))
return NULL;

View File

@ -204,6 +204,8 @@ void* ssh_client_thread(void* data) {
/* If Wake-on-LAN is enabled, attempt to wake. */
if (settings->wol_send_packet) {
guac_client_log(client, GUAC_LOG_DEBUG, "Sending Wake-on-LAN packet, "
"and pausing for %d seconds.", settings->wol_wait_time);
if (guac_wol_wake(settings->wol_mac_addr, settings->wol_broadcast_addr,
settings->wol_wait_time))
return NULL;

View File

@ -560,6 +560,8 @@ void* guac_telnet_client_thread(void* data) {
/* If Wake-on-LAN is enabled, attempt to wake. */
if (settings->wol_send_packet) {
guac_client_log(client, GUAC_LOG_DEBUG, "Sending Wake-on-LAN packet, "
"and pausing for %d seconds.", settings->wol_wait_time);
if (guac_wol_wake(settings->wol_mac_addr, settings->wol_broadcast_addr,
settings->wol_wait_time))
return NULL;

View File

@ -241,6 +241,8 @@ void* guac_vnc_client_thread(void* data) {
/* If Wake-on-LAN is enabled, attempt to wake. */
if (settings->wol_send_packet) {
guac_client_log(client, GUAC_LOG_DEBUG, "Sending Wake-on-LAN packet, "
"and pausing for %d seconds.", settings->wol_wait_time);
if (guac_wol_wake(settings->wol_mac_addr, settings->wol_broadcast_addr,
settings->wol_wait_time))
return NULL;