Skip to content

Commit

Permalink
[webconsole] show v4 status only ipv4 is enabled
Browse files Browse the repository at this point in the history
Signed-off-by: R4SAS <[email protected]>
  • Loading branch information
r4sas committed Aug 13, 2021
1 parent 300f97e commit d417a9b
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions daemon/HTTPServer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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> ";
Expand Down

0 comments on commit d417a9b

Please sign in to comment.