Changeset d9b37ac


Ignore:
Timestamp:
Sep 6, 2011 1:23:09 PM (8 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
70d9415
Parents:
fdc3af9
Message:
  • I2PTunnel: Save keys to privkey file when enabling persistent key after tunnel creation (ticket #480)
File:
1 edited

Legend:

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

    rfdc3af9 rd9b37ac  
    156156                _log.warn("Cannot start the tunnel - no type specified");
    157157            return;
     158        }
     159        // Config options may have changed since instantiation, so do this again.
     160        // Or should we take it out of the constructor completely?
     161        if (type.endsWith("server") || getPersistentClientKey()) {
     162            boolean ok = createPrivateKey();
     163            if (!ok) {
     164                log("Failed to start tunnel " + getName() + " as the private key file could not be created");
     165                return;
     166            }
    158167        }
    159168        setI2CPOptions();
Note: See TracChangeset for help on using the changeset viewer.