I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit bdf7dda3 authored by zzz's avatar zzz
Browse files

Use the right error msg when a b32 address fails to resolve

parent a7d4b3d6
No related branches found
No related tags found
No related merge requests found
...@@ -560,7 +560,7 @@ public class I2PTunnelHTTPClient extends I2PTunnelClientBase implements Runnable ...@@ -560,7 +560,7 @@ public class I2PTunnelHTTPClient extends I2PTunnelClientBase implements Runnable
Destination dest = I2PTunnel.destFromName(destination); Destination dest = I2PTunnel.destFromName(destination);
if (dest == null) { if (dest == null) {
l.log("Could not resolve " + destination + "."); //l.log("Could not resolve " + destination + ".");
if (_log.shouldLog(Log.WARN)) if (_log.shouldLog(Log.WARN))
_log.warn("Unable to resolve " + destination + " (proxy? " + usingWWWProxy + ", request: " + targetRequest); _log.warn("Unable to resolve " + destination + " (proxy? " + usingWWWProxy + ", request: " + targetRequest);
String str; String str;
...@@ -570,6 +570,8 @@ public class I2PTunnelHTTPClient extends I2PTunnelClientBase implements Runnable ...@@ -570,6 +570,8 @@ public class I2PTunnelHTTPClient extends I2PTunnelClientBase implements Runnable
str = FileUtil.readTextFile("docs/dnfp-header.ht", 100, true); str = FileUtil.readTextFile("docs/dnfp-header.ht", 100, true);
else if(ahelper != 0) else if(ahelper != 0)
str = FileUtil.readTextFile("docs/dnfb-header.ht", 100, true); 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 { else {
str = FileUtil.readTextFile("docs/dnfh-header.ht", 100, true); str = FileUtil.readTextFile("docs/dnfh-header.ht", 100, true);
showAddrHelper = true; showAddrHelper = true;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment