1
0
Fork 0
mirror of https://github.com/ton-blockchain/ton synced 2025-03-09 15:40:10 +00:00

ADNL Tunnel library integration

This commit is contained in:
Oleg Baranov 2025-02-19 17:18:40 +04:00
parent 2a68c8610b
commit 4737d5f83d
13 changed files with 348 additions and 10 deletions

View file

@ -57,6 +57,7 @@ struct Config {
};
struct AddrCats {
td::IPAddress in_addr;
bool is_tunnel;
std::shared_ptr<ton::adnl::AdnlProxy> proxy;
std::set<AdnlCategory> cats;
std::set<AdnlCategory> priority_cats;
@ -78,6 +79,7 @@ struct Config {
std::map<ton::PublicKeyHash, td::uint32> keys_refcnt;
td::uint16 out_port;
bool tunnel_enabled;
std::map<Addr, AddrCats> addrs;
std::map<ton::PublicKeyHash, AdnlCategory> adnl_ids;
std::set<ton::PublicKeyHash> dht_ids;