diff --git a/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/ui/GeneralHelper.java b/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/ui/GeneralHelper.java
index c09f226e1c..83c7fca4bb 100644
--- a/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/ui/GeneralHelper.java
+++ b/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/ui/GeneralHelper.java
@@ -504,6 +504,8 @@ public class GeneralHelper {
/**
* @param newTunnelType used if tunnel < 0
+ * @return the current type if we have a destination already,
+ * else the default for that type of tunnel
*/
public int getSigType(int tunnel, String newTunnelType) {
SigType type;
diff --git a/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/web/EditBean.java b/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/web/EditBean.java
index 6e63732260..bacd84aea8 100644
--- a/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/web/EditBean.java
+++ b/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/web/EditBean.java
@@ -23,6 +23,7 @@ import net.i2p.data.Signature;
import net.i2p.data.SigningPrivateKey;
import net.i2p.i2ptunnel.TunnelController;
import net.i2p.i2ptunnel.TunnelControllerGroup;
+import net.i2p.i2ptunnel.ui.GeneralHelper;
import net.i2p.util.Addresses;
/**
@@ -222,7 +223,16 @@ public class EditBean extends IndexBean {
public boolean isSigTypeAvailable(int code) {
return SigType.isAvailable(code);
}
-
+
+ /** @since 0.9.33 */
+ public boolean canChangeSigType(int tunnel) {
+ if (tunnel < 0)
+ return true;
+ if (getDestination(tunnel) != null)
+ return false;
+ return getTunnelStatus(tunnel) == GeneralHelper.NOT_RUNNING;
+ }
+
/**
* Random keys, hidden in forms
* @since 0.9.18
diff --git a/apps/i2ptunnel/jsp/editClient.jsi b/apps/i2ptunnel/jsp/editClient.jsi
index 8e5e92b535..88a9a89704 100644
--- a/apps/i2ptunnel/jsp/editClient.jsi
+++ b/apps/i2ptunnel/jsp/editClient.jsi
@@ -116,7 +116,7 @@
<%=intl._t("Reachable by")%>:
- |