mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
Add own key to p3disc clients
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5.0@2684 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
f46978fbcd
commit
12050089da
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user