mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
exclude hidden routers from tunnels
This commit is contained in:
parent
ebd64c9337
commit
b95caaf219
4 changed files with 12 additions and 7 deletions
|
@ -31,7 +31,8 @@ namespace data
|
|||
eHighBandwidth = 0x02,
|
||||
eReachable = 0x04,
|
||||
eSSUTesting = 0x08,
|
||||
eSSUIntroducer = 0x10
|
||||
eSSUIntroducer = 0x10,
|
||||
eHidden = 0x20
|
||||
};
|
||||
|
||||
enum TransportStyle
|
||||
|
@ -88,6 +89,8 @@ namespace data
|
|||
bool UsesIntroducer () const;
|
||||
bool IsIntroducer () const { return m_Caps & eSSUIntroducer; };
|
||||
bool IsPeerTesting () const { return m_Caps & eSSUTesting; };
|
||||
bool IsHidden () const { return m_Caps & eHidden; };
|
||||
|
||||
uint8_t GetCaps () const { return m_Caps; };
|
||||
|
||||
void SetUnreachable (bool unreachable) { m_IsUnreachable = unreachable; };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue