Add information about sending address in try_harder()

This commit is contained in:
thorkill 2016-05-24 13:13:35 +02:00
parent e60657765c
commit b7fe5910d6

View file

@ -1398,7 +1398,9 @@ static node_t *try_harder(const sockaddr_t *from, const vpn_packet_t *pkt) {
}
if(!try_mac(n, pkt)) {
logger(DEBUG_ALWAYS, LOG_ERR, "try_mac(): for %s failed - previous log messages may be misleading", n->name);
char *hostname = sockaddr2hostname(from);
logger(DEBUG_ALWAYS, LOG_ERR, "try_mac(): from %s for %s failed - previous log messages may be misleading", hostname, n->name);
free(hostname);
continue;
}