mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-15 19:04:25 -05:00
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:
parent
92df7037b2
commit
a2a567851e
@ -220,7 +220,7 @@ void p3disc::sendAllInfoToJustConnectedPeer(std::string id)
|
|||||||
#endif
|
#endif
|
||||||
RsPeerDetails pd;
|
RsPeerDetails pd;
|
||||||
rsPeers->getPeerDetails(id, 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
|
#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;
|
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
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user