don't use unreachable RI after 1 hour

This commit is contained in:
orignal 2014-08-19 11:01:11 -04:00
parent 7995385a19
commit 4c2f403740
3 changed files with 11 additions and 4 deletions

View file

@ -257,6 +257,9 @@ namespace data
case 'H':
m_Caps |= Caps::eHidden;
break;
case 'U':
m_Caps |= Caps::eUnreachable;
break;
default: ;
}
cap++;
@ -465,7 +468,7 @@ namespace data
bool RouterInfo::UsesIntroducer () const
{
return !(m_Caps & Caps::eReachable); // non-reachable
return m_Caps & Caps::eUnreachable; // non-reachable
}
const RouterInfo::Address * RouterInfo::GetNTCPAddress (bool v4only) const