mirror of
https://github.com/yrutschle/sslh.git
synced 2025-04-14 16:17:14 +03:00
log to syslog even if in foreground
This commit is contained in:
parent
61191edf7c
commit
c595aadb4d
@ -15,6 +15,9 @@ vNEXT:
|
|||||||
Update Let's Encrypt entry in example.cfg for tls-alpn-01
|
Update Let's Encrypt entry in example.cfg for tls-alpn-01
|
||||||
challenges; tls-sni-* challenges are now deprecated.
|
challenges; tls-sni-* challenges are now deprecated.
|
||||||
|
|
||||||
|
Log to syslog even if in foreground (for people who
|
||||||
|
use fail2ban)
|
||||||
|
|
||||||
v1.20: 20NOV2018
|
v1.20: 20NOV2018
|
||||||
Added support for socks5 protocol (Eugene Protozanov)
|
Added support for socks5 protocol (Eugene Protozanov)
|
||||||
|
|
||||||
|
4
common.c
4
common.c
@ -561,8 +561,8 @@ void log_message(int type, const char* msg, ...)
|
|||||||
va_start(ap, msg);
|
va_start(ap, msg);
|
||||||
if (cfg.foreground)
|
if (cfg.foreground)
|
||||||
vfprintf(stderr, msg, ap);
|
vfprintf(stderr, msg, ap);
|
||||||
else
|
|
||||||
vsyslog(type, msg, ap);
|
vsyslog(type, msg, ap);
|
||||||
va_end(ap);
|
va_end(ap);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user