From d000d2047d236d2c249f543922c3388091cf3607 Mon Sep 17 00:00:00 2001 From: zzz <zzz@mail.i2p> Date: Wed, 15 Dec 2010 01:21:58 +0000 Subject: [PATCH] clean up jump host verification --- .../java/src/net/i2p/i2ptunnel/I2PTunnelHTTPClient.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/I2PTunnelHTTPClient.java b/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/I2PTunnelHTTPClient.java index f747e48e73..a9b1a82878 100644 --- a/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/I2PTunnelHTTPClient.java +++ b/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/I2PTunnelHTTPClient.java @@ -939,8 +939,12 @@ public class I2PTunnelHTTPClient extends I2PTunnelHTTPClientBase implements Runn // Skip jump servers we don't know String jumphost = jurl.substring(7); // "http://" jumphost = jumphost.substring(0, jumphost.indexOf('/')); - Destination dest = I2PAppContext.getGlobalContext().namingService().lookup(jumphost); - if (dest == null) continue; + if (!jumphost.endsWith(".i2p")) + continue; + if (!jumphost.endsWith(".b32.i2p")) { + Destination dest = I2PAppContext.getGlobalContext().namingService().lookup(jumphost); + if (dest == null) continue; + } out.write("<br><a href=\"".getBytes()); out.write(jurl.getBytes()); -- GitLab