From 6a9d13690217f7ef67af348ee3a58e58f4e0abc3 Mon Sep 17 00:00:00 2001 From: dr|z3d Date: Sat, 21 Aug 2021 11:34:43 +0000 Subject: [PATCH] Router: remove 'sensitive' spans from router information --- daemon/HTTPServer.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/daemon/HTTPServer.cpp b/daemon/HTTPServer.cpp index 0ff3a433..7defc770 100644 --- a/daemon/HTTPServer.cpp +++ b/daemon/HTTPServer.cpp @@ -1176,12 +1176,12 @@ namespace http { s << "
\r\n\r\n" << "\r\n"; s << "
\r\n\r\n"; - s << "\r\n"; s << "\r\n"; if (!i2p::context.GetRouterInfo().GetProperty("family").empty()) - s << "\r\n"; + s << "\r\n"; auto family = i2p::context.GetFamily (); if (family.length () > 0) s << "\r\n"; } - s << "\r\n\r\n"; + s << "\r\n\r\n"; } s << "\r\n"; - s << "\r\n"; + s << "\r\n"; s << "
" << tr("Router Identity") << "
" << tr("Router Identity") << "" << i2p::context.GetRouterInfo().GetIdentHashBase64() << "
" << tr("Router Caps") << "" << i2p::context.GetRouterInfo().GetProperty("caps") << "
" << tr("Router Family") << "
" << tr("Router Family") << "" + << i2p::context.GetRouterInfo().GetProperty("family") << "
"<< tr("Family") << "" << family << "
\r\n"; @@ -1216,12 +1216,12 @@ namespace http { default: s << "
" << tr("Unknown") << "
" << address->host.to_string() << ":" << address->port << "
" << tr("Uptime") << ""; ShowUptime(s, i2p::context.GetUptime ()); s << "
" << tr("Data path") << "" << i2p::fs::GetUTF8DataDir() << "
" << tr("Data path") << "" << i2p::fs::GetUTF8DataDir() << "
\r\n
\r\n
\r\n\r\n";