mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-14 20:12:29 -04:00
* Added "lastcontact = now" when added SSL Peer. This ensures that new certificates will be retained for at least 30 days.
=> Giving new peers a chance to connect. * Fixed missing return in p3PeerMgr::removeUnusedLocations() * moved RTT defines to top of file, and increased to 150 results. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4546 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
cd41eda638
commit
8688c65f4c
3 changed files with 10 additions and 4 deletions
|
@ -808,8 +808,12 @@ bool p3Peers::addFriend(const std::string &ssl_id, const std::string &gpg_id)
|
|||
return true;
|
||||
}
|
||||
|
||||
/* otherwise - we install as ssl_id. */
|
||||
return mPeerMgr->addFriend(ssl_id, gpg_id);
|
||||
/* otherwise - we install as ssl_id.....
|
||||
* If we are adding an SSL certificate. we flag lastcontact as now.
|
||||
* This will cause the SSL certificate to be retained for 30 days... and give the person a chance to connect!
|
||||
* */
|
||||
time_t now = time(NULL);
|
||||
return mPeerMgr->addFriend(ssl_id, gpg_id, RS_NET_MODE_UDP, RS_VIS_STATE_STD, now);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue