Changeset 088f955


Ignore:
Timestamp:
Oct 9, 2009 1:56:34 PM (11 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
aeb711a
Parents:
376d61c
Message:

fix persistent client key on split directories - thanks user!

Files:
3 edited

Legend:

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

    r376d61c r088f955  
    44package net.i2p.i2ptunnel;
    55
     6import java.io.File;
    67import java.io.FileInputStream;
    78import java.io.IOException;
     
    115116        this.l = l;
    116117        this.handlerName = handlerName + _clientId;
    117         this.privKeyFile = pkf;
    118118        _ownDest = ownDest; // == ! shared client
    119119
     
    124124        _context.statManager().createRateStat("i2ptunnel.client.manageTime", "How long it takes to accept a socket and fire it into an i2ptunnel runner (or queue it for the pool)?", "I2PTunnel", new long[] { 60*1000, 10*60*1000, 60*60*1000 });
    125125        _context.statManager().createRateStat("i2ptunnel.client.buildRunTime", "How long it takes to run a queued socket into an i2ptunnel runner?", "I2PTunnel", new long[] { 60*1000, 10*60*1000, 60*60*1000 });
     126
     127        // normalize path so we can find it
     128        if (pkf != null) {
     129            File keyFile = new File(pkf);
     130            if (!keyFile.isAbsolute())
     131                keyFile = new File(_context.getConfigDir(), pkf);
     132            this.privKeyFile = keyFile.getAbsolutePath();
     133        }
    126134
    127135        // no need to load the netDb with leaseSets for destinations that will never
     
    278286        return buildSocketManager(tunnel, null);
    279287    }
     288
     289    /** @param pkf absolute path or null */
    280290    protected static I2PSocketManager buildSocketManager(I2PTunnel tunnel, String pkf) {
    281291        Properties props = new Properties();
  • history.txt

    r376d61c r088f955  
     12009-10-09 zzz
     2    * I2PTunnel: Fix persistent client tunnel keyfile location
     3
    142009-10-07 zzz
    25    * Doc and eepsite_index updates
  • router/java/src/net/i2p/router/RouterVersion.java

    r376d61c r088f955  
    1919    public final static String ID = "Monotone";
    2020    public final static String VERSION = CoreVersion.VERSION;
    21     public final static long BUILD = 24;
     21    public final static long BUILD = 25;
    2222    /** for example "-test" */
    2323    public final static String EXTRA = "-rc";
Note: See TracChangeset for help on using the changeset viewer.