Browse Source

[webconsole] do not show registration block when token is not provided

Signed-off-by: R4SAS <r4sas@i2pmail.org>
moduled
R4SAS 3 years ago
parent
commit
9b4e8bf64b
  1. 2
      daemon/HTTPServer.cpp

2
daemon/HTTPServer.cpp

@ -417,7 +417,7 @@ namespace http {
s << "</div>\r\n</div>\r\n"; s << "</div>\r\n</div>\r\n";
} }
if(dest->IsPublic()) if(dest->IsPublic() && token)
{ {
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 ();

Loading…
Cancel
Save