establish SSU session through relay

This commit is contained in:
orignal 2014-02-21 16:13:36 -05:00
parent 3c8f859169
commit 64aa588a9b
4 changed files with 141 additions and 11 deletions

View file

@ -323,6 +323,13 @@ namespace data
else
return m_SupportedTransports & (eSSUV4 | eSSUV6);
}
bool RouterInfo::UsesIntroducer () const
{
if (!IsSSU ()) return false;
auto address = GetSSUAddress (true); // no introducers for v6
return address && !address->introducers.empty ();
}
const RouterInfo::Address * RouterInfo::GetNTCPAddress (bool v4only) const
{