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

Skip to content
Snippets Groups Projects
Commit eed8d9c6 authored by jrandom's avatar jrandom Committed by zzz
Browse files

fixed dangerous comparison (== != .equals) [thanks mihi!]

parent cbe12adb
No related branches found
No related tags found
No related merge requests found
......@@ -199,7 +199,7 @@ public class I2PTunnelHTTPClient extends I2PTunnelClientBase implements Runnable
if (host.toLowerCase().endsWith(".i2p")) {
destination = host;
host = getHostName(destination);
if (host == "i2p") {
if ( (host != null) && ("i2p".equals(host)) ) {
int pos2;
if ((pos2 = line.indexOf("?")) != -1) {
// Try to find an address helper in the fragments
......
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