mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-11-02 07:53:43 +00:00
Log to syslog when running in daemon mode.
This commit is contained in:
+2
-1
@@ -988,6 +988,7 @@ int main (int argc, char **argv)
|
||||
|
||||
if (pid_flags)
|
||||
{
|
||||
USE_SYSLOG(argv[0]);
|
||||
demonize(pid_path);
|
||||
}
|
||||
|
||||
@@ -1043,7 +1044,7 @@ int main (int argc, char **argv)
|
||||
}
|
||||
|
||||
// Setup UDP
|
||||
if (udprelay)
|
||||
if (udprelay)
|
||||
{
|
||||
LOGD("udprelay enabled.");
|
||||
udprelay_init(server_host[0], server_port, asyncns, m, iface);
|
||||
|
||||
Reference in New Issue
Block a user