summaryrefslogtreecommitdiff
path: root/node/IncomingPacket.cpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2017-08-23 16:42:17 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2017-08-23 16:42:17 -0700
commit6ee201865b12f5b0f16208f6d696b1bf00197eaf (patch)
tree07d7c9c1cc24b532946269506374c01eb59478a1 /node/IncomingPacket.cpp
parentb1d94c9f9324a31887dc6edc99ed58d4f9b187db (diff)
downloadinfinitytier-6ee201865b12f5b0f16208f6d696b1bf00197eaf.tar.gz
infinitytier-6ee201865b12f5b0f16208f6d696b1bf00197eaf.zip
Clean up WHOIS code.
Diffstat (limited to 'node/IncomingPacket.cpp')
-rw-r--r--node/IncomingPacket.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/node/IncomingPacket.cpp b/node/IncomingPacket.cpp
index 3788708d..685f2f09 100644
--- a/node/IncomingPacket.cpp
+++ b/node/IncomingPacket.cpp
@@ -115,7 +115,7 @@ bool IncomingPacket::tryDecode(const RuntimeEnvironment *RR,void *tPtr)
case Packet::VERB_REMOTE_TRACE: return _doREMOTE_TRACE(RR,tPtr,peer);
}
} else {
- RR->sw->requestWhois(tPtr,sourceAddress);
+ RR->sw->requestWhois(tPtr,RR->node->now(),sourceAddress);
return false;
}
} catch ( ... ) {
@@ -556,7 +556,7 @@ bool IncomingPacket::_doWHOIS(const RuntimeEnvironment *RR,void *tPtr,const Shar
++count;
} else {
// Request unknown WHOIS from upstream from us (if we have one)
- RR->sw->requestWhois(tPtr,addr);
+ RR->sw->requestWhois(tPtr,RR->node->now(),addr);
}
}