packages/net/softethervpn5/patches/101-add-config-write-syslog.patch
Andy Walsh 159ab10ab2 softethervpn5: add new package softethervpn5
Signed-off-by: Andy Walsh <andy.walsh44+github@gmail.com>
2019-01-08 17:56:50 +01:00

22 lines
563 B
Diff

--- a/src/Cedar/Server.c 2018-07-25
+++ b/src/Cedar/Server.c 2018-07-26
@@ -110,7 +110,7 @@
// Server.c
// VPN Server module
-
+#include <syslog.h>
#include "CedarPch.h"
static SERVER *server = NULL;
@@ -6601,6 +6601,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);
{