Changeset 366da1b3


Ignore:
Timestamp:
Jan 13, 2009 7:32:10 PM (12 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
1c76d24
Parents:
bdcb625
Message:

add b32 config for mosfet

File:
1 edited

Legend:

Unmodified
Added
Removed
  • core/java/src/net/i2p/client/naming/HostsTxtNamingService.java

    rbdcb625 r366da1b3  
    4040     */
    4141    public final static String PROP_HOSTS_FILE = "i2p.hostsfilelist";
     42    public final static String PROP_B32 = "i2p.naming.hostsTxt.useB32";
    4243
    4344    /** default hosts.txt filename */
     
    7374
    7475        // Try Base32 decoding
    75         if (hostname.length() == BASE32_HASH_LENGTH + 8 && hostname.endsWith(".b32.i2p")) {
     76        if (hostname.length() == BASE32_HASH_LENGTH + 8 && hostname.endsWith(".b32.i2p") &&
     77            Boolean.valueOf(_context.getProperty(PROP_B32, "true")).booleanValue()) {
    7678            d = LookupDest.lookupBase32Hash(_context, hostname.substring(0, BASE32_HASH_LENGTH));
    7779            if (d != null) {
Note: See TracChangeset for help on using the changeset viewer.