From 39953b69253ee859e68dda3f0dfbbb0ea76ccc56 Mon Sep 17 00:00:00 2001
From: str4d <str4d@mail.i2p>
Date: Fri, 27 Jan 2012 04:10:01 +0000
Subject: [PATCH] Fix condition for including targetHost

---
 apps/i2ptunnel/jsp/wizard.jsp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/apps/i2ptunnel/jsp/wizard.jsp b/apps/i2ptunnel/jsp/wizard.jsp
index 40eee4d56b..184d7074ab 100644
--- a/apps/i2ptunnel/jsp/wizard.jsp
+++ b/apps/i2ptunnel/jsp/wizard.jsp
@@ -170,7 +170,7 @@
 
             <% /* Page 5 - Binding ports and addresses*/
 
-            if ((tunnelIsClient && "streamrclient".equals(tunnelType)) || !"streamrserver".equals(tunnelType)) {
+            if ((tunnelIsClient && "streamrclient".equals(tunnelType)) || (!tunnelIsClient && !"streamrserver".equals(tunnelType))) {
               if (curPage == 5) {
             %><div id="hostField" class="rowItem">
                 <label for="targetHost" accesskey="H">
-- 
GitLab