TRACE output improvements and compile fix.
This commit is contained in:
parent
10df5dcf70
commit
cc2a1444ae
2 changed files with 5 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue