summaryrefslogtreecommitdiffstats
path: root/src/wol.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/wol.c')
-rw-r--r--src/wol.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/wol.c b/src/wol.c
index 40a390c..0ebf718 100644
--- a/src/wol.c
+++ b/src/wol.c
@@ -18,6 +18,7 @@
#include <sys/socket.h>
#include <fcntl.h>
#include "wol.h"
+#include "cfg.h"
#include "ogAdmServer.h"
int wol_socket_open(void)
@@ -73,7 +74,7 @@ bool wake_up_broadcast(int sd, struct sockaddr_in *client,
for (ifa = ifaddr; ifa != NULL; ifa = ifa->ifa_next) {
if (ifa->ifa_addr == NULL ||
ifa->ifa_addr->sa_family != AF_INET ||
- strcmp(ifa->ifa_name, interface) != 0)
+ strcmp(ifa->ifa_name, ogconfig.wol.interface) != 0)
continue;
broadcast_addr =