mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-21 21:59:02 -04:00
fixed bugs causing short invites to not generate/parse hidden nodes with correct options to keep hidden address
This commit is contained in:
parent
ab6688f1eb
commit
3912c6562e
4 changed files with 11 additions and 9 deletions
|
@ -189,8 +189,6 @@ void HomePage::updateOwnCert()
|
|||
|
||||
void HomePage::updateOwnId()
|
||||
{
|
||||
bool include_extra_locators = mIncludeAllIPs;
|
||||
|
||||
RsPeerDetails detail;
|
||||
|
||||
if (!rsPeers->getPeerDetails(rsPeers->getOwnId(), detail))
|
||||
|
@ -199,9 +197,10 @@ void HomePage::updateOwnId()
|
|||
return ;
|
||||
}
|
||||
|
||||
std::string invite ;
|
||||
bool include_extra_locators = mIncludeAllIPs || detail.isHiddenNode;
|
||||
std::string invite ;
|
||||
|
||||
rsPeers->getShortInvite(invite,rsPeers->getOwnId(),true,!mIncludeAllIPs);
|
||||
rsPeers->getShortInvite(invite,rsPeers->getOwnId(),true,!include_extra_locators);
|
||||
|
||||
ui->retroshareid->setText(QString::fromUtf8(invite.c_str()));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue