GUACAMOLE-513: Add debug logging for sending WoL.
This commit is contained in:
parent
3d4a27607d
commit
3dc2591517
@ -532,6 +532,8 @@ void* guac_rdp_client_thread(void* data) {
|
|||||||
|
|
||||||
/* If Wake-on-LAN is enabled, try to wake. */
|
/* If Wake-on-LAN is enabled, try to wake. */
|
||||||
if (settings->wol_send_packet) {
|
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,
|
if(guac_wol_wake(settings->wol_mac_addr, settings->wol_broadcast_addr,
|
||||||
settings->wol_wait_time))
|
settings->wol_wait_time))
|
||||||
return NULL;
|
return NULL;
|
||||||
|
@ -204,6 +204,8 @@ void* ssh_client_thread(void* data) {
|
|||||||
|
|
||||||
/* If Wake-on-LAN is enabled, attempt to wake. */
|
/* If Wake-on-LAN is enabled, attempt to wake. */
|
||||||
if (settings->wol_send_packet) {
|
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,
|
if (guac_wol_wake(settings->wol_mac_addr, settings->wol_broadcast_addr,
|
||||||
settings->wol_wait_time))
|
settings->wol_wait_time))
|
||||||
return NULL;
|
return NULL;
|
||||||
|
@ -560,6 +560,8 @@ void* guac_telnet_client_thread(void* data) {
|
|||||||
|
|
||||||
/* If Wake-on-LAN is enabled, attempt to wake. */
|
/* If Wake-on-LAN is enabled, attempt to wake. */
|
||||||
if (settings->wol_send_packet) {
|
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,
|
if (guac_wol_wake(settings->wol_mac_addr, settings->wol_broadcast_addr,
|
||||||
settings->wol_wait_time))
|
settings->wol_wait_time))
|
||||||
return NULL;
|
return NULL;
|
||||||
|
@ -241,6 +241,8 @@ void* guac_vnc_client_thread(void* data) {
|
|||||||
|
|
||||||
/* If Wake-on-LAN is enabled, attempt to wake. */
|
/* If Wake-on-LAN is enabled, attempt to wake. */
|
||||||
if (settings->wol_send_packet) {
|
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,
|
if (guac_wol_wake(settings->wol_mac_addr, settings->wol_broadcast_addr,
|
||||||
settings->wol_wait_time))
|
settings->wol_wait_time))
|
||||||
return NULL;
|
return NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user