From eed8d9c61bbf66e078fd8b10bb48d9199ce16278 Mon Sep 17 00:00:00 2001
From: jrandom <jrandom>
Date: Wed, 25 Aug 2004 00:00:04 +0000
Subject: [PATCH] fixed dangerous comparison (== != .equals) [thanks mihi!]

---
 .../java/src/net/i2p/i2ptunnel/I2PTunnelHTTPClient.java         | 2 +-
 1 file changed, 1 insertion(+), 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 5d4a85b113..728cbe3270 100644
--- a/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/I2PTunnelHTTPClient.java
+++ b/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/I2PTunnelHTTPClient.java
@@ -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
-- 
GitLab