From dfb171d32a0c301d73039db078310cee6651572f Mon Sep 17 00:00:00 2001 From: R4SAS Date: Fri, 20 May 2022 20:49:26 +0300 Subject: [PATCH] [httpproxy] ordered jumps list Signed-off-by: R4SAS --- libi2pd_client/HTTPProxy.cpp | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/libi2pd_client/HTTPProxy.cpp b/libi2pd_client/HTTPProxy.cpp index 189b68f3..1265464c 100644 --- a/libi2pd_client/HTTPProxy.cpp +++ b/libi2pd_client/HTTPProxy.cpp @@ -32,7 +32,13 @@ namespace i2p { namespace proxy { - std::map jumpservices = { + static const std::vector jumporder = { + "reg.i2p", + "stats.i2p", + "identiguy.i2p", + }; + + static const std::map jumpservices = { { "reg.i2p", "http://shx5vqsw7usdaunyzr2qmes2fq37oumybpudrd4jjj4e4vk4uusa.b32.i2p/jump/" }, { "identiguy.i2p", "http://3mzmrus2oron5fxptw7hw2puho3bnqmw2hqy7nw64dsrrjwdilva.b32.i2p/cgi-bin/query?hostname=" }, { "stats.i2p", "http://7tbay5p4kzeekxvyvbf6v7eauazemsnnl2aoyqhg5jzpr5eke7tq.b32.i2p/cgi-bin/jump.cgi?a=" }, @@ -174,8 +180,8 @@ namespace proxy { << "

" << tr("Remote host not found in router's addressbook") << "

\r\n" << "

" << tr("You may try to find this host on jump services below") << ":

\r\n" << "
    \r\n"; - for (const auto& js : jumpservices) { - ss << "
  • " << js.first << "
  • \r\n"; + for (const auto& jump : jumporder) { + ss << "
  • " << jump << "
  • \r\n"; } ss << "
\r\n"; std::string content = ss.str();