mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-04-02 03:55:51 -04:00
corrected bug of not sending info to own location (tracker 3104190)
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4016 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
198d61891e
commit
c0201b8dd2
@ -269,7 +269,7 @@ void p3disc::sendAllInfoToJustConnectedPeer(const std::string &id)
|
||||
RsPeerDetails pd;
|
||||
rsPeers->getPeerDetails(id, pd);
|
||||
|
||||
if (!pd.accept_connection || (!pd.ownsign && pd.gpg_id != rsPeers->getGPGOwnId()))
|
||||
if (pd.gpg_id != rsPeers->getGPGOwnId() && (!pd.accept_connection || !pd.ownsign) )
|
||||
{
|
||||
//only send info when connection is accepted and gpg key is signed or our own key
|
||||
#ifdef P3DISC_DEBUG
|
||||
@ -358,7 +358,8 @@ RsDiscReply *p3disc::createDiscReply(const std::string &to, const std::string &a
|
||||
|
||||
RsPeerDetails pd;
|
||||
rsPeers->getPeerDetails(to, pd);
|
||||
if (!pd.accept_connection || !pd.ownsign) {
|
||||
if (pd.gpg_id != rsPeers->getGPGOwnId() && (!pd.accept_connection || !pd.ownsign) )
|
||||
{
|
||||
#ifdef P3DISC_DEBUG
|
||||
std::cerr << "p3disc::createDiscReply() we're not sending the info because the destination gpg key is not signed or not accepted." << std::cerr << std::endl;
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user