log to syslog even if in foreground

This commit is contained in:
Yves Rutschle committed 2020-05-28 10:13:54 +00:00
1 parent 61191edf7c
commit c595aadb4d
2 files changed
+5 -2

No files matched your search

+3
View File
@@ -15,6 +15,9 @@ vNEXT:
Update Let's Encrypt entry in example.cfg for tls-alpn-01
challenges; tls-sni-* challenges are now deprecated.
Log to syslog even if in foreground (for people who
use fail2ban)
v1.20: 20NOV2018
Added support for socks5 protocol (Eugene Protozanov)
+2 -2
View File
@@ -561,8 +561,8 @@ void log_message(int type, const char* msg, ...)
va_start(ap, msg);
if (cfg.foreground)
vfprintf(stderr, msg, ap);
else
vsyslog(type, msg, ap);
vsyslog(type, msg, ap);
va_end(ap);
}