From bdf7dda3b409fbd818c4641fe69874c70c887200 Mon Sep 17 00:00:00 2001 From: zzz <zzz@mail.i2p> Date: Fri, 6 Feb 2009 13:14:10 +0000 Subject: [PATCH] Use the right error msg when a b32 address fails to resolve --- .../java/src/net/i2p/i2ptunnel/I2PTunnelHTTPClient.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/I2PTunnelHTTPClient.java b/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/I2PTunnelHTTPClient.java index a3d6f75e49..4b5379ac12 100644 --- a/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/I2PTunnelHTTPClient.java +++ b/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/I2PTunnelHTTPClient.java @@ -560,7 +560,7 @@ public class I2PTunnelHTTPClient extends I2PTunnelClientBase implements Runnable Destination dest = I2PTunnel.destFromName(destination); if (dest == null) { - l.log("Could not resolve " + destination + "."); + //l.log("Could not resolve " + destination + "."); if (_log.shouldLog(Log.WARN)) _log.warn("Unable to resolve " + destination + " (proxy? " + usingWWWProxy + ", request: " + targetRequest); String str; @@ -570,6 +570,8 @@ public class I2PTunnelHTTPClient extends I2PTunnelClientBase implements Runnable str = FileUtil.readTextFile("docs/dnfp-header.ht", 100, true); else if(ahelper != 0) str = FileUtil.readTextFile("docs/dnfb-header.ht", 100, true); + else if (destination.length() == 60 && destination.endsWith(".b32.i2p")) + str = FileUtil.readTextFile("docs/dnf-header.ht", 100, true); else { str = FileUtil.readTextFile("docs/dnfh-header.ht", 100, true); showAddrHelper = true; -- GitLab