testnet patch

pull/1038/head
Jeff Becker 4 years ago
parent 09f5f6dfa7
commit 495ad6d566
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

@ -39,12 +39,16 @@ namespace llarp
bool
PathContext::CheckPathLimitHitByIP(const llarp::Addr& ip)
{
#ifdef TESTNET
return false;
#else
llarp::Addr remote = ip;
// set port to zero
remote.port(0);
// try inserting remote address by ip into decaying hash set
// if it cannot insert it has hit a limit
return not m_PathLimits.Insert(remote);
#endif
}
std::shared_ptr< Logic >

Loading…
Cancel
Save