mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
find NTCP2 address by static key. Don't make router unreachable if can't connect by NTCP2
This commit is contained in:
parent
b1fcd4d27b
commit
1ca0354cf2
3 changed files with 13 additions and 20 deletions
|
@ -150,7 +150,7 @@ namespace data
|
|||
uint64_t GetTimestamp () const { return m_Timestamp; };
|
||||
int GetVersion () const { return m_Version; };
|
||||
Addresses& GetAddresses () { return *m_Addresses; }; // should be called for local RI only, otherwise must return shared_ptr
|
||||
std::shared_ptr<const Address> GetNTCP2Address (bool publishedOnly) const;
|
||||
std::shared_ptr<const Address> GetNTCP2AddressWithStaticKey (const uint8_t * key) const;
|
||||
std::shared_ptr<const Address> GetPublishedNTCP2V4Address () const;
|
||||
std::shared_ptr<const Address> GetPublishedNTCP2V6Address () const;
|
||||
std::shared_ptr<const Address> GetSSUAddress (bool v4only = true) const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue