support zero-hops tunnels for destinations

This commit is contained in:
orignal 2016-06-29 11:26:46 -04:00
parent 14cdb531c8
commit f6e988d6fd
4 changed files with 47 additions and 18 deletions

View file

@ -159,6 +159,11 @@ namespace tunnel
return num;
}
bool IsEmpty () const
{
return !m_FirstHop;
}
virtual bool IsInbound () const { return m_FirstHop->isGateway; }
virtual uint32_t GetTunnelID () const