1
0
mirror of https://git.openwrt.org/feed/packages.git synced 2024-06-17 04:44:10 +02:00
openwrt-packages/net/softethervpn5/patches/101-add-config-write-syslog.patch
Thomas Winkler 1c2cee2b81 softethervpn5: version update to 5.02.5181 (incl. vulnerability fixes)
softethervpn5: The softethervpn5 package is due for an update from recent source. This PR implements a Makefile update to pull December 2023 release, which includes fixes for recently-disclosed vulnerabilities. The build patches are also updated accordingly.

Signed-off-by: Thomas Winkler <tewinkler86@gmail.com>
2024-02-14 12:55:57 -08: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"
@@ -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);
{