mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Use whitelist.
This commit is contained in:
@@ -48,7 +48,7 @@ public:
|
|||||||
boost::mutex::scoped_lock sl(mMutex);
|
boost::mutex::scoped_lock sl(mMutex);
|
||||||
|
|
||||||
iBlackList* e = findEntry(source, true);
|
iBlackList* e = findEntry(source, true);
|
||||||
return e ? (e->mBalance <= (mCreditLimit * mDecaySeconds)) : true;
|
return (e == NULL) || (e->mBalance <= (mCreditLimit * mDecaySeconds)) || isWhiteList(source);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Clean up stale entries
|
// Clean up stale entries
|
||||||
|
|||||||
Reference in New Issue
Block a user