Changeset 6685acfe


Ignore:
Timestamp:
Oct 7, 2014 12:03:00 PM (7 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
088290c
Parents:
1d1a05e
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • apps/i2ptunnel/java/src/net/i2p/i2ptunnel/web/EditBean.java

    r1d1a05e r6685acfe  
    184184    /** @since 0.9.12 */
    185185    public int getSigType(int tunnel) {
    186         return getProperty(tunnel, I2PClient.PROP_SIGTYPE, 0);
     186        String stype = getProperty(tunnel, I2PClient.PROP_SIGTYPE, "0");
     187        if (stype.equals("0"))
     188            return 0;
     189        SigType type = SigType.parseSigType(stype);
     190        if (type == null)
     191            return 0;
     192        return type.getCode();
    187193    }
    188194   
Note: See TracChangeset for help on using the changeset viewer.