From a5e4d586eb325e669a9b66c011d4bd576434011c Mon Sep 17 00:00:00 2001 From: zzz <zzz@mail.i2p> Date: Sun, 11 Aug 2013 11:26:40 +0000 Subject: [PATCH] dont display jump server msg if we dont know any --- .../src/net/i2p/i2ptunnel/I2PTunnelHTTPClient.java | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/I2PTunnelHTTPClient.java b/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/I2PTunnelHTTPClient.java index e641d8085f..9fcc9e02e2 100644 --- a/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/I2PTunnelHTTPClient.java +++ b/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/I2PTunnelHTTPClient.java @@ -1181,10 +1181,7 @@ public class I2PTunnelHTTPClient extends I2PTunnelHTTPClientBase implements Runn out.write((":</b> " + wwwProxy).getBytes()); } if(jumpServers != null && jumpServers.length() > 0) { - out.write("<br><br>".getBytes()); - out.write(_("Click a link below to look for an address helper by using a \"jump\" service:").getBytes("UTF-8")); - out.write("<br>\n".getBytes()); - + boolean first = true; if(uri.startsWith("http://")) { uri = uri.substring(7); } @@ -1213,6 +1210,12 @@ public class I2PTunnelHTTPClient extends I2PTunnelHTTPClientBase implements Runn } } + if (first) { + first = false; + out.write("<br><br>".getBytes()); + out.write(_("Click a link below to look for an address helper by using a \"jump\" service:").getBytes("UTF-8")); + out.write("<br>\n".getBytes()); + } out.write("<br><a href=\"".getBytes()); out.write(jurl.getBytes()); out.write(uri.getBytes()); -- GitLab