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

Skip to content
Snippets Groups Projects
Commit 6685acfe authored by zzz's avatar zzz
Browse files

i2ptunnel: Handle named sig types from i2ptunnel.config in the GUI

parent 1d1a05ee
No related branches found
No related tags found
No related merge requests found
......@@ -183,7 +183,13 @@ public class EditBean extends IndexBean {
/** @since 0.9.12 */
public int getSigType(int tunnel) {
return getProperty(tunnel, I2PClient.PROP_SIGTYPE, 0);
String stype = getProperty(tunnel, I2PClient.PROP_SIGTYPE, "0");
if (stype.equals("0"))
return 0;
SigType type = SigType.parseSigType(stype);
if (type == null)
return 0;
return type.getCode();
}
/** @since 0.9.12 */
......
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