diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2013-12-31 11:18:40 -0800 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2013-12-31 11:18:40 -0800 |
| commit | cc2a1444ae9a732fc5f480af06237ceb29507ea6 (patch) | |
| tree | beaef7fd1a34ee7726cdfb5c427c1d19a90feb15 /node/Peer.cpp | |
| parent | 10df5dcf707e76d4f66daef8dfb4a51df27abce1 (diff) | |
| download | infinitytier-cc2a1444ae9a732fc5f480af06237ceb29507ea6.tar.gz infinitytier-cc2a1444ae9a732fc5f480af06237ceb29507ea6.zip | |
TRACE output improvements and compile fix.
Diffstat (limited to 'node/Peer.cpp')
| -rw-r--r-- | node/Peer.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/node/Peer.cpp b/node/Peer.cpp index 6e5e5175..106b4350 100644 --- a/node/Peer.cpp +++ b/node/Peer.cpp @@ -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; |
