add/remove SSU2 introducers to local RouterInfo

This commit is contained in:
orignal 2022-07-20 16:01:08 -04:00
parent cf0d3b5f61
commit 2197cd8620
5 changed files with 70 additions and 4 deletions

View file

@ -123,6 +123,8 @@ namespace garlic
void RemoveNTCPAddress (bool v4only = true); // delete NTCP address for older routers. TODO: remove later
bool AddIntroducer (const i2p::data::RouterInfo::Introducer& introducer);
void RemoveIntroducer (const boost::asio::ip::udp::endpoint& e);
bool AddSSU2Introducer (const i2p::data::RouterInfo::Introducer& introducer, bool v4);
void RemoveSSU2Introducer (const i2p::data::IdentHash& h, bool v4);
bool IsUnreachable () const;
void SetUnreachable (bool v4, bool v6);
void SetReachable (bool v4, bool v6);