mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-25 23:45:49 -04:00
Prepare RsBanList for JSON API support
This commit is contained in:
parent
ebd55b2626
commit
fb4be22f0e
6 changed files with 103 additions and 66 deletions
|
@ -85,7 +85,10 @@ virtual int dhtInfoCallback(const bdId *id, uint32_t type, uint32_t flags, std::
|
|||
return 0;
|
||||
|
||||
// now check the filter
|
||||
if(rsBanList->isAddressAccepted(*(const sockaddr_storage*)addr, RSBANLIST_CHECKING_FLAGS_BLACKLIST, NULL)) {
|
||||
if(rsBanList->isAddressAccepted(
|
||||
*reinterpret_cast<const sockaddr_storage*>(addr),
|
||||
RSBANLIST_CHECKING_FLAGS_BLACKLIST ))
|
||||
{
|
||||
*isBanned = false;
|
||||
} else {
|
||||
#ifdef DEBUG_BITDHT
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue