0
0
mirror of https://github.com/openwrt/packages.git synced 2025-02-25 16:53:43 +00:00
packages/net/softethervpn5/patches/101-add-config-write-syslog.patch

22 lines
521 B
Diff
Raw Normal View History

--- a/src/Cedar/Server.c
+++ b/src/Cedar/Server.c
@@ -5,6 +5,7 @@
// Server.c
// VPN Server module
+#include <syslog.h>
#include "Server.h"
#include "Admin.h"
@@ -6593,6 +6594,10 @@ UINT SiWriteConfigurationFile(SERVER *s)
{
return 0;
}
+
+ openlog("softethervpn-server", LOG_CONS | LOG_PID | LOG_NDELAY, LOG_DAEMON);
+ syslog(LOG_NOTICE, "Writing vpn_server.config (AutoSaveConfigSpan set to < %d > seconds)", (s->AutoSaveConfigSpan / 1000));
+ closelog();
Lock(s->SaveCfgLock);
{