TRACE output improvements and compile fix.

This commit is contained in:
Adam Ierymenko 2013-12-31 11:18:40 -08:00
parent 10df5dcf70
commit cc2a1444ae
2 changed files with 5 additions and 3 deletions

View file

@ -97,8 +97,10 @@ void Peer::onReceive(
// Only learn paths on replies to packets we have sent, otherwise
// this introduces both an asymmetry problem in NAT-t and a potential
// reply DOS attack.
if (!wp->fixed)
if (!wp->fixed) {
wp->addr = remoteAddr;
TRACE("peer %s learned endpoint %s from %s(%s)",address().toString().c_str(),remoteAddr.toString().c_str(),Packet::verbString(verb),Packet::verbString(inReVerb));
}
_requestHistory[p].timestamp = 0;
break;