find NTCP2 address by static key. Don't make router unreachable if can't connect by NTCP2

This commit is contained in:
orignal 2021-02-17 18:46:41 -05:00
parent b1fcd4d27b
commit 1ca0354cf2
3 changed files with 13 additions and 20 deletions

View file

@ -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;