added seperated limit for discovery (30 days)

This commit is contained in:
sehraf 2016-02-19 16:32:57 +01:00
parent 841299d077
commit 4140969fcb
3 changed files with 10 additions and 6 deletions

View file

@ -65,8 +65,12 @@ const uint32_t RS_NET_FLAGS_EXTERNAL_ADDR = 0x0008;
const uint32_t RS_NET_FLAGS_STABLE_UDP = 0x0010;
const uint32_t RS_NET_FLAGS_TRUSTS_ME = 0x0020;
/* remove locations offline since 90 days */
const time_t RS_PEER_OLD_PEER = (90 * 24 * 3600);
/*
* remove locations offline since 90 days
* stopt sending locations via discovery when offline for +30 days
*/
const time_t RS_PEER_OFFLINE_DELETE = (90 * 24 * 3600);
const time_t RS_PEER_OFFLINE_NO_DISC = (30 * 24 * 3600);
class peerState
{