mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
don't connect to NTCP2 only address using NTCP
This commit is contained in:
parent
5b83d4bef8
commit
9884a4336f
3 changed files with 13 additions and 10 deletions
|
@ -95,6 +95,7 @@ namespace data
|
|||
Tag<32> staticKey;
|
||||
Tag<16> iv;
|
||||
bool isPublished = false;
|
||||
bool isNTCP2Only = false;
|
||||
};
|
||||
|
||||
struct Address
|
||||
|
@ -126,6 +127,7 @@ namespace data
|
|||
|
||||
bool IsNTCP2 () const { return (bool)ntcp2; };
|
||||
bool IsPublishedNTCP2 () const { return IsNTCP2 () && ntcp2->isPublished; };
|
||||
bool IsNTCP2Only () const { return ntcp2 && ntcp2->isNTCP2Only; };
|
||||
};
|
||||
typedef std::list<std::shared_ptr<Address> > Addresses;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue