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_SEND_PERIOD 600 // 10 Minutes.
|
||||||
|
|
||||||
#define RSBANLIST_DELAY_BETWEEN_TALK_TO_DHT 240 // every 4 mins.
|
#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 *********************************
|
/************ IMPLEMENTATION NOTES *********************************
|
||||||
*
|
*
|
||||||
@ -67,20 +62,14 @@
|
|||||||
*/
|
*/
|
||||||
RsBanList *rsBanList = NULL ;
|
RsBanList *rsBanList = NULL ;
|
||||||
|
|
||||||
p3BanList::p3BanList(p3ServiceControl *sc, p3NetMgr */*nm*/)
|
p3BanList::p3BanList(p3ServiceControl *sc, p3NetMgr */*nm*/) :
|
||||||
:p3Service(), mBanMtx("p3BanList"), mServiceCtrl(sc)//, mNetMgr(nm)
|
p3Service(), mBanMtx("p3BanList"), mServiceCtrl(sc), mSentListTime(0),
|
||||||
{
|
mLastDhtInfoRequest(0), mIPFilteringEnabled(true),
|
||||||
addSerialType(new RsBanListSerialiser());
|
// default number of IPs in same range to trigger a complete IP /24 filter.
|
||||||
|
mAutoRangeLimit(100),
|
||||||
mSentListTime = 0;
|
mAutoRangeIps(false), mIPFriendGatheringEnabled(false),
|
||||||
mLastDhtInfoRequest = 0 ;
|
mIPDHTGatheringEnabled(false)
|
||||||
|
{ addSerialType(new RsBanListSerialiser()); }
|
||||||
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 ;
|
|
||||||
}
|
|
||||||
|
|
||||||
const std::string BANLIST_APP_NAME = "banlist";
|
const std::string BANLIST_APP_NAME = "banlist";
|
||||||
const uint16_t BANLIST_APP_MAJOR_VERSION = 1;
|
const uint16_t BANLIST_APP_MAJOR_VERSION = 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user