Do not show 'Address registration' line if leaseset is encrypted

This commit is contained in:
TomasGl 2022-06-03 19:32:46 +03:00
parent 38d6c29ce9
commit 67d6544534
No known key found for this signature in database
GPG key ID: E86E34EAA5DB652F

View file

@ -419,7 +419,7 @@ namespace http {
s << "</div>\r\n</div>\r\n";
}
if (dest->IsPublic() && token)
if (dest->IsPublic() && token && !dest->IsEncryptedLeaseSet ())
{
std::string webroot; i2p::config::GetOption("http.webroot", webroot);
auto base32 = dest->GetIdentHash ().ToBase32 ();