From 728f2670f3f4359aa0b89ad879863d30a3a47400 Mon Sep 17 00:00:00 2001 From: hagen Date: Thu, 14 Jul 2016 00:00:00 +0000 Subject: [PATCH] * HTTPServer.cpp : drop jumpservices : now handled by HTTPProxy itself --- HTTPServer.cpp | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/HTTPServer.cpp b/HTTPServer.cpp index a98c1489..2be70cec 100644 --- a/HTTPServer.cpp +++ b/HTTPServer.cpp @@ -71,7 +71,6 @@ namespace http { const char HTTP_PAGE_SAM_SESSIONS[] = "sam_sessions"; const char HTTP_PAGE_SAM_SESSION[] = "sam_session"; const char HTTP_PAGE_I2P_TUNNELS[] = "i2p_tunnels"; - const char HTTP_PAGE_JUMPSERVICES[] = "jumpservices"; const char HTTP_PAGE_COMMANDS[] = "commands"; const char HTTP_COMMAND_ENABLE_TRANSIT[] = "enable_transit"; const char HTTP_COMMAND_DISABLE_TRANSIT[] = "disable_transit"; @@ -83,11 +82,6 @@ namespace http { const char HTTP_PARAM_SAM_SESSION_ID[] = "id"; const char HTTP_PARAM_ADDRESS[] = "address"; - std::map jumpservices = { - { "inr.i2p", "http://joajgazyztfssty4w2on5oaqksz6tqoxbduy553y34mf4byv6gpq.b32.i2p/search/?q=" }, - { "stats.i2p", "http://7tbay5p4kzeekxvyvbf6v7eauazemsnnl2aoyqhg5jzpr5eke7tq.b32.i2p/cgi-bin/jump.cgi?a=" }, - }; - void ShowUptime (std::stringstream& s, int seconds) { int num; @@ -150,7 +144,6 @@ namespace http { " Transit tunnels
\r\n" " Transports
\r\n" " I2P tunnels
\r\n" - " Jump services
\r\n" " SAM sessions
\r\n" "\r\n" "
"; @@ -246,20 +239,6 @@ namespace http { s << "Transit Tunnels: " << std::to_string(transitTunnelCount) << "
\r\n"; } - void ShowJumpServices (std::stringstream& s, const std::string& address) - { - s << "
"; - s << ""; - s << ""; - s << ""; - s << "

\r\n"; - s << "Jump services for " << address << "\r\n\r\n"; - } - void ShowLocalDestinations (std::stringstream& s) { s << "Local Destinations:
\r\n
\r\n"; @@ -648,8 +627,6 @@ namespace http { ShowTunnels (s); else if (page == HTTP_PAGE_COMMANDS) ShowCommands (s); - else if (page == HTTP_PAGE_JUMPSERVICES) - ShowJumpServices (s, params["address"]); else if (page == HTTP_PAGE_TRANSIT_TUNNELS) ShowTransitTunnels (s); else if (page == HTTP_PAGE_LOCAL_DESTINATIONS)