mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-22 06:09:09 -04:00
fixed bug causing hidden nodes to crash at start
This commit is contained in:
parent
de87938e6e
commit
20335cf134
2 changed files with 16 additions and 13 deletions
|
@ -207,19 +207,22 @@ HomePage::~HomePage()
|
|||
|
||||
RetroshareInviteFlags HomePage::currentInviteFlags() const
|
||||
{
|
||||
RetroshareInviteFlags invite_flags = RetroshareInviteFlags::NOTHING;
|
||||
RetroshareInviteFlags invite_flags = RetroshareInviteFlags::NOTHING;
|
||||
|
||||
if(mIncludeLocIPact->isChecked())
|
||||
invite_flags |= RetroshareInviteFlags::CURRENT_LOCAL_IP;
|
||||
if(!RsAccounts::isHiddenNode())
|
||||
{
|
||||
if(mIncludeLocIPact->isChecked())
|
||||
invite_flags |= RetroshareInviteFlags::CURRENT_LOCAL_IP;
|
||||
|
||||
if(mIncludeExtIPact->isChecked())
|
||||
invite_flags |= RetroshareInviteFlags::CURRENT_EXTERNAL_IP;
|
||||
if(mIncludeExtIPact->isChecked())
|
||||
invite_flags |= RetroshareInviteFlags::CURRENT_EXTERNAL_IP;
|
||||
|
||||
if(mIncludeDNSact->isChecked())
|
||||
invite_flags |= RetroshareInviteFlags::DNS;
|
||||
if(mIncludeDNSact->isChecked())
|
||||
invite_flags |= RetroshareInviteFlags::DNS;
|
||||
|
||||
if(mIncludeIPHistoryact->isChecked())
|
||||
invite_flags |= RetroshareInviteFlags::FULL_IP_HISTORY;
|
||||
if(mIncludeIPHistoryact->isChecked())
|
||||
invite_flags |= RetroshareInviteFlags::FULL_IP_HISTORY;
|
||||
}
|
||||
|
||||
return invite_flags;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue