|
|
@ -2329,16 +2329,18 @@ bool CMiniDexed::InitNetwork() |
|
|
|
|
|
|
|
|
|
|
|
m_pNetDevice = CNetDevice::GetNetDevice(NetDeviceType); |
|
|
|
m_pNetDevice = CNetDevice::GetNetDevice(NetDeviceType); |
|
|
|
|
|
|
|
|
|
|
|
// Syslog configuration
|
|
|
|
// syslog configuration
|
|
|
|
static const u8 SysLogServer[] = {192, 168, 0, 143}; // FIXME: Don't hardcode this, use m_INetworkSyslogServerIPAddress instead
|
|
|
|
CIPAddress ServerIP = m_pConfig->GetNetworkSyslogServerIPAddress(); |
|
|
|
static const u16 usServerPort = 8514; // standard port is 514
|
|
|
|
if (ServerIP.IsSet () && !ServerIP.IsNull ()) |
|
|
|
CIPAddress ServerIP (SysLogServer); |
|
|
|
{ |
|
|
|
CString IPString; |
|
|
|
static const u16 usServerPort = 8514; // standard port is 514
|
|
|
|
ServerIP.Format (&IPString); |
|
|
|
CString IPString; |
|
|
|
LOGNOTE ( "Sending log messages to %s:%u", |
|
|
|
ServerIP.Format (&IPString); |
|
|
|
(const char *) IPString, (unsigned) usServerPort); |
|
|
|
LOGNOTE ("Sending log messages to syslog server %s:%u", |
|
|
|
|
|
|
|
(const char *) IPString, (unsigned) usServerPort); |
|
|
|
new CSysLogDaemon (m_pNet, ServerIP, usServerPort); |
|
|
|
|
|
|
|
|
|
|
|
new CSysLogDaemon (m_pNet, ServerIP, usServerPort); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
return m_pNet != nullptr; |
|
|
|
return m_pNet != nullptr; |
|
|
|