1
0
mirror of https://github.com/PurpleI2P/i2pd.git synced 2025-01-22 08:14:15 +00:00

check for NTCP for yggdrasil address

This commit is contained in:
orignal 2021-02-01 22:24:51 -05:00
parent ace80c29e7
commit 05c7aacfa5

View File

@ -990,7 +990,7 @@ namespace data
return GetAddress ( return GetAddress (
[](std::shared_ptr<const RouterInfo::Address> address)->bool [](std::shared_ptr<const RouterInfo::Address> address)->bool
{ {
return i2p::util::net::IsYggdrasilAddress (address->host); return address->IsPublishedNTCP2 () && i2p::util::net::IsYggdrasilAddress (address->host);
}); });
} }