summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/rest.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/rest.c b/src/rest.c
index 9823b0f..337ee40 100644
--- a/src/rest.c
+++ b/src/rest.c
@@ -571,6 +571,9 @@ static int og_cmd_wol(json_t *element, struct og_msg_params *params)
return 0;
for (i = 0; i < params->ips_array_len; i++) {
+ if (og_client_find(params->ips_array[i]))
+ continue;
+
if (inet_aton(params->ips_array[i], &addr) < 0)
return -1;