mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-02 06:06:10 -04:00
improved display of banlist
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8313 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
5f8755522e
commit
b0acf6dd59
2 changed files with 44 additions and 43 deletions
|
@ -166,20 +166,17 @@ void p3BanList::autoFigureOutBanRanges()
|
|||
|
||||
if(it->second.n >= mAutoRangeLimit)
|
||||
{
|
||||
std::cerr << " --> creating new ban range." << std::endl;
|
||||
BanListPeer& peer(mBanRanges[it->first]) ;
|
||||
std::cerr << " --> creating new ban range." << std::endl;
|
||||
BanListPeer& peer(mBanRanges[it->first]) ;
|
||||
|
||||
peer.addr = it->first ;
|
||||
peer.masked_bytes = 1 ;
|
||||
peer.reason = RSBANLIST_REASON_AUTO_RANGE ;
|
||||
peer.level = RSBANLIST_ORIGIN_SELF ;
|
||||
peer.state = true ;
|
||||
|
||||
if(peer.mTs == 0)
|
||||
{
|
||||
peer.mTs = now ;
|
||||
peer.connect_attempts = 0 ;
|
||||
}
|
||||
peer.addr = it->first ;
|
||||
peer.masked_bytes = 1 ;
|
||||
peer.reason = RSBANLIST_REASON_AUTO_RANGE ;
|
||||
peer.level = RSBANLIST_ORIGIN_SELF ;
|
||||
peer.state = true ;
|
||||
peer.mTs = now ;
|
||||
peer.connect_attempts = 0 ;
|
||||
peer.connect_attempts = it->second.n;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue