whilst browsing the code I found 2 locations where a check for ipfiltering is done but the check for banning seems to be missing...
Parts are:
PartFile.cpp @ AddSource
Quote
{
if (thePrefs.GetLogFilteredIPs())
AddDebugLogLine(false, _T("Ignored URL source (IP=%s) \"%s\" - IP filter (%s)"), ipstr(nIP), pszURL, theApp.ipfilter->GetLastHit());
return;
}
//>>> WiZaRd - forgotten code?
if (theApp.clientlist->IsBannedClient(nIP))
{
if (thePrefs.GetLogFilteredIPs() && thePrefs.GetLogBanned())
AddDebugLogLine(false, _T("Ignored URL source (IP=%s) \"%s\" - Banned"), ipstr(nIP), pszURL);
return;
}
//<<< WiZaRd - forgotten code?
CUrlClient* client = new CUrlClient;
And DownloadQueue @ KademliaSearchFile
Quote
if (theApp.ipfilter->IsFiltered(ED2Kip))
{
if (thePrefs.GetLogFilteredIPs())
AddDebugLogLine(false, _T("IPfiltered source IP=%s (%s) received from Kademlia"), ipstr(ED2Kip), theApp.ipfilter->GetLastHit());
return;
}
//>>> WiZaRd - forgotten code?
if (theApp.clientlist->IsBannedClient(ED2Kip))
{
if (thePrefs.GetLogFilteredIPs() && thePrefs.GetLogBanned())
AddDebugLogLine(false, _T("Banned source IP=%s (%s) received from Kademlia"), ipstr(ED2Kip), theApp.ipfilter->GetLastHit());
return;
}
//<<< WiZaRd - forgotten code?
if( (ip == Kademlia::CKademlia::getIPAddress() || ED2Kip == theApp.serverconnect->GetClientID()) && tcp == thePrefs.GetPort())
return;
Intention? Really missing?