mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
Fix Gcc Warning in p3banlist
This commit is contained in:
parent
e66c0d1349
commit
7f851f66be
@ -62,13 +62,14 @@
|
||||
*/
|
||||
RsBanList *rsBanList = NULL ;
|
||||
|
||||
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)
|
||||
p3BanList::p3BanList(p3ServiceControl *sc, p3NetMgr */*nm*/)
|
||||
: p3Service(), mBanMtx("p3BanList"), mServiceCtrl(sc)
|
||||
, mSentListTime(0), mLastDhtInfoRequest(0)
|
||||
// default number of IPs in same range to trigger a complete IP /24 filter.
|
||||
, mAutoRangeLimit(100), mAutoRangeIps(false)
|
||||
, mIPFilteringEnabled(true)
|
||||
, mIPFriendGatheringEnabled(false)
|
||||
, mIPDHTGatheringEnabled(false)
|
||||
{ addSerialType(new RsBanListSerialiser()); }
|
||||
|
||||
const std::string BANLIST_APP_NAME = "banlist";
|
||||
|
@ -141,22 +141,22 @@ private:
|
||||
int printBanSet_locked(std::ostream &out);
|
||||
bool isWhiteListed_locked(const sockaddr_storage &addr);
|
||||
|
||||
p3ServiceControl *mServiceCtrl;
|
||||
//p3NetMgr *mNetMgr;
|
||||
time_t mSentListTime;
|
||||
std::map<RsPeerId, BanList> mBanSources;
|
||||
std::map<struct sockaddr_storage, BanListPeer> mBanSet;
|
||||
std::map<struct sockaddr_storage, BanListPeer> mBanRanges;
|
||||
std::map<struct sockaddr_storage, BanListPeer> mWhiteListedRanges;
|
||||
|
||||
p3ServiceControl *mServiceCtrl;
|
||||
//p3NetMgr *mNetMgr;
|
||||
time_t mLastDhtInfoRequest ;
|
||||
|
||||
uint32_t mAutoRangeLimit ;
|
||||
bool mAutoRangeIps ;
|
||||
|
||||
bool mIPFilteringEnabled ;
|
||||
bool mIPFriendGatheringEnabled ;
|
||||
bool mIPDHTGatheringEnabled ;
|
||||
|
||||
uint32_t mAutoRangeLimit ;
|
||||
bool mAutoRangeIps ;
|
||||
};
|
||||
|
||||
#endif // SERVICE_RSBANLIST_HEADER
|
||||
|
Loading…
Reference in New Issue
Block a user