forked from I2P_Developers/i2p.i2p
clean up jump host verification
This commit is contained in:
@@ -939,8 +939,12 @@ public class I2PTunnelHTTPClient extends I2PTunnelHTTPClientBase implements Runn
|
|||||||
// Skip jump servers we don't know
|
// Skip jump servers we don't know
|
||||||
String jumphost = jurl.substring(7); // "http://"
|
String jumphost = jurl.substring(7); // "http://"
|
||||||
jumphost = jumphost.substring(0, jumphost.indexOf('/'));
|
jumphost = jumphost.substring(0, jumphost.indexOf('/'));
|
||||||
Destination dest = I2PAppContext.getGlobalContext().namingService().lookup(jumphost);
|
if (!jumphost.endsWith(".i2p"))
|
||||||
if (dest == null) continue;
|
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("<br><a href=\"".getBytes());
|
||||||
out.write(jurl.getBytes());
|
out.write(jurl.getBytes());
|
||||||
|
Reference in New Issue
Block a user