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

This commit is contained in:
TomasGl 2022-06-03 19:32:46 +03:00 committed by R4SAS
parent 4670b12d49
commit 0176e5cf18

View File

@ -419,7 +419,7 @@ namespace http {
s << "</div>\r\n</div>\r\n"; 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); std::string webroot; i2p::config::GetOption("http.webroot", webroot);
auto base32 = dest->GetIdentHash ().ToBase32 (); auto base32 = dest->GetIdentHash ().ToBase32 ();