mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
Use proper initializers in p3BanList
This commit is contained in:
parent
d89c151a4d
commit
2b71a049eb
@ -53,11 +53,6 @@
|
||||
#define RSBANLIST_SEND_PERIOD 600 // 10 Minutes.
|
||||
|
||||
#define RSBANLIST_DELAY_BETWEEN_TALK_TO_DHT 240 // every 4 mins.
|
||||
#define RSBANLIST_DEFAULT_AUTORANGE_LIMIT 3 // default number of IPs in same range to trigger a complete IP range filter.
|
||||
#define RSBANLIST_DEFAULT_AUTORANGE_ENABLED true
|
||||
#define RSBANLIST_DEFAULT_FRIEND_GATHERING_ENABLED false
|
||||
#define RSBANLIST_DEFAULT_DHT_GATHERING_ENABLED false
|
||||
#define RSBANLIST_DEFAULT_ENABLED true
|
||||
|
||||
/************ IMPLEMENTATION NOTES *********************************
|
||||
*
|
||||
@ -67,20 +62,14 @@
|
||||
*/
|
||||
RsBanList *rsBanList = NULL ;
|
||||
|
||||
p3BanList::p3BanList(p3ServiceControl *sc, p3NetMgr */*nm*/)
|
||||
:p3Service(), mBanMtx("p3BanList"), mServiceCtrl(sc)//, mNetMgr(nm)
|
||||
{
|
||||
addSerialType(new RsBanListSerialiser());
|
||||
|
||||
mSentListTime = 0;
|
||||
mLastDhtInfoRequest = 0 ;
|
||||
|
||||
mIPFilteringEnabled = RSBANLIST_DEFAULT_ENABLED ;
|
||||
mAutoRangeLimit = RSBANLIST_DEFAULT_AUTORANGE_LIMIT ;
|
||||
mAutoRangeIps = RSBANLIST_DEFAULT_AUTORANGE_ENABLED ;
|
||||
mIPFriendGatheringEnabled = RSBANLIST_DEFAULT_FRIEND_GATHERING_ENABLED ;
|
||||
mIPDHTGatheringEnabled = RSBANLIST_DEFAULT_DHT_GATHERING_ENABLED ;
|
||||
}
|
||||
p3BanList::p3BanList(p3ServiceControl *sc, p3NetMgr */*nm*/) :
|
||||
p3Service(), mBanMtx("p3BanList"), mServiceCtrl(sc), mSentListTime(0),
|
||||
mLastDhtInfoRequest(0), mIPFilteringEnabled(true),
|
||||
// default number of IPs in same range to trigger a complete IP /24 filter.
|
||||
mAutoRangeLimit(100),
|
||||
mAutoRangeIps(false), mIPFriendGatheringEnabled(false),
|
||||
mIPDHTGatheringEnabled(false)
|
||||
{ addSerialType(new RsBanListSerialiser()); }
|
||||
|
||||
const std::string BANLIST_APP_NAME = "banlist";
|
||||
const uint16_t BANLIST_APP_MAJOR_VERSION = 1;
|
||||
|
Loading…
Reference in New Issue
Block a user