don't log every strange packet coming to the UDP port
it's a sure way to fill up syslog. Only log those if debug level is up to PROTOCOL
This commit is contained in:
parent
576899ef0d
commit
0246939ce1
1 changed files with 3 additions and 1 deletions
|
@ -545,12 +545,14 @@ void handle_incoming_vpn_data(int sock)
|
||||||
n = try_harder(&from, &pkt);
|
n = try_harder(&from, &pkt);
|
||||||
if(n)
|
if(n)
|
||||||
update_node_udp(n, &from);
|
update_node_udp(n, &from);
|
||||||
else {
|
else ifdebug(PROTOCOL) {
|
||||||
hostname = sockaddr2hostname(&from);
|
hostname = sockaddr2hostname(&from);
|
||||||
logger(LOG_WARNING, _("Received UDP packet from unknown source %s"), hostname);
|
logger(LOG_WARNING, _("Received UDP packet from unknown source %s"), hostname);
|
||||||
free(hostname);
|
free(hostname);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
receive_udppacket(n, &pkt);
|
receive_udppacket(n, &pkt);
|
||||||
|
|
Loading…
Reference in a new issue