Browse Source

[webconsole] show v4 status only ipv4 is enabled

Signed-off-by: R4SAS <r4sas@i2pmail.org>
pull/1687/head
R4SAS 3 years ago
parent
commit
1e17ef2f21
Signed by: r4sas
GPG Key ID: 66F6C87B98EBCFE2
  1. 9
      daemon/HTTPServer.cpp

9
daemon/HTTPServer.cpp

@ -326,9 +326,12 @@ namespace http { @@ -326,9 +326,12 @@ namespace http {
s << "<b>" << tr("Uptime") << ":</b> ";
ShowUptime(s, i2p::context.GetUptime ());
s << "<br>\r\n";
s << "<b>" << tr("Network status") << ":</b> ";
ShowNetworkStatus (s, i2p::context.GetStatus ());
s << "<br>\r\n";
if (i2p::context.SupportsV4 ())
{
s << "<b>" << tr("Network status") << ":</b> ";
ShowNetworkStatus (s, i2p::context.GetStatus ());
s << "<br>\r\n";
}
if (i2p::context.SupportsV6 ())
{
s << "<b>" << tr("Network status v6") << ":</b> ";

Loading…
Cancel
Save