1
0
mirror of https://git.openwrt.org/feed/packages.git synced 2024-06-26 01:27:41 +02:00
openwrt-packages/net/softethervpn5/patches/101-add-config-write-syslog.patch
Andy Walsh 3fac6932d4 softethervpn5: update to 5.02.5180
* update to 5.02.5180
* refresh patches
* add deps: libsodium
* fix (Build/Install)

Signed-off-by: Andy Walsh <andy.walsh44+github@gmail.com>

fixup
2021-06-24 16:44:54 +02:00

22 lines
521 B
Diff

--- 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"
@@ -6561,6 +6562,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);
{