diff --git a/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/I2PTunnelHTTPClient.java b/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/I2PTunnelHTTPClient.java index 96f6191f8..624af0e11 100644 --- a/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/I2PTunnelHTTPClient.java +++ b/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/I2PTunnelHTTPClient.java @@ -32,6 +32,7 @@ import net.i2p.client.naming.NamingService; import net.i2p.client.streaming.I2PSocket; import net.i2p.client.streaming.I2PSocketManager; import net.i2p.client.streaming.I2PSocketOptions; +import net.i2p.crypto.SHA256Generator; import net.i2p.data.Base32; import net.i2p.data.Base64; import net.i2p.data.DataFormatException; @@ -981,8 +982,14 @@ public class I2PTunnelHTTPClient extends I2PTunnelHTTPClientBase implements Runn return; byte[] header = getErrorPage("ahelper-new", ERR_AHELPER_NEW); out.write(header); - out.write(("
" + _("Host") + " | " + destination + " | ||||||
" + _("Destination") + " | " +
+ out.write(("
"+
@@ -1179,7 +1186,7 @@ public class I2PTunnelHTTPClient extends I2PTunnelHTTPClientBase implements Runn
out.write(jurl.getBytes());
out.write(uri.getBytes());
out.write("\">".getBytes());
- out.write(jurl.getBytes());
+ out.write(jurl.substring(7).getBytes());
out.write(uri.getBytes());
out.write("\n".getBytes());
}
|