diff --git a/src/minidexed.cpp b/src/minidexed.cpp index 57c9c86..2ad415e 100644 --- a/src/minidexed.cpp +++ b/src/minidexed.cpp @@ -2248,7 +2248,19 @@ void CMiniDexed::UpdateNetwork() { LOGPANIC ("Cannot publish mdns service"); } - + + // syslog configuration + CIPAddress ServerIP = m_pConfig->GetNetworkSyslogServerIPAddress(); + if (ServerIP.IsSet () && !ServerIP.IsNull ()) + { + static const u16 usServerPort = 8514; // standard port is 514 + CString IPStringSyslog; + ServerIP.Format (&IPStringSyslog); + LOGNOTE ("Sending log messages to syslog server %s:%u", + (const char *) IPStringSyslog, (unsigned) usServerPort); + new CSysLogDaemon (m_pNet, ServerIP, usServerPort); + } + m_bNetworkReady = true; }