forked from I2P_Developers/i2p.i2p
i2ptunnel: Handle named sig types from i2ptunnel.config in the GUI
This commit is contained in:
@ -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 */
|
||||
|
Reference in New Issue
Block a user