Add own key to p3disc clients

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2694 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
joss17 2010-04-08 19:07:16 +00:00
parent 92df7037b2
commit a2a567851e

View File

@ -220,7 +220,7 @@ void p3disc::sendAllInfoToJustConnectedPeer(std::string id)
#endif
RsPeerDetails pd;
rsPeers->getPeerDetails(id, pd);
if (!pd.accept_connection || !pd.ownsign) {
if (!pd.accept_connection || (!pd.ownsign && pd.gpg_id != rsPeers->getGPGOwnId())) { //only send info when connection is accepted and gpg key is signed or our own key
#ifdef P3DISC_DEBUG
std::cerr << "p3disc::sendAllInfoToJustConnectedPeer() we're not sending the info because the destination gpg key is not signed or not accepted." << std::cerr << std::endl;
#endif