introduce dns for syslog too

This commit is contained in:
Wolfgang Hottgenroth 2020-11-27 12:50:45 +01:00
parent b4ef9d29f9
commit 3c25a7d9e1
Signed by: wn
GPG Key ID: 6C1E5E531E0D5D7F

View File

@ -86,6 +86,9 @@ void syslog(char *msg) {
state = 0; state = 0;
break; break;
} }
state = 2;
// no break
case 2:
res32 = sendto(SYSLOG_SOCK, (uint8_t*)msg, strlen(msg), syslogAddr, 514); res32 = sendto(SYSLOG_SOCK, (uint8_t*)msg, strlen(msg), syslogAddr, 514);
if (res32 != strlen(msg)) { if (res32 != strlen(msg)) {
disconnect(SYSLOG_SOCK); disconnect(SYSLOG_SOCK);