summaryrefslogtreecommitdiffstats
path: root/src/wol.c
diff options
context:
space:
mode:
authorOpenGnSys Support Team <soporte-og@soleta.eu>2020-10-07 11:10:36 +0200
committerOpenGnSys Support Team <soporte-og@soleta.eu>2020-10-07 11:17:00 +0200
commitfe1ce97c50e575201fe47d7587251e228edf8fdf (patch)
tree4656eeb2fe23e2ef1a148af1303cae329c449078 /src/wol.c
parent3cea4bb763165d119a329a1c7f2c767857cdb384 (diff)
#988 remove legacy configuration
Use og_server_cfg everywhere. Convert port to string to make it easy for the dbi API since it expects a string. Remove legacy example configuration file.
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 =