Changeset eb321445 for router


Ignore:
Timestamp:
Mar 10, 2018 6:30:08 PM (2 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
2deed134
Parents:
39039b8
Message:

Router: Fix rekey after hidden config change

File:
1 edited

Legend:

Unmodified
Added
Removed
  • router/java/src/net/i2p/router/Router.java

    r39039b8 reb321445  
    115115    /** this does not put an 'H' in your routerInfo **/
    116116    public final static String PROP_HIDDEN_HIDDEN = "router.isHidden";
     117    /** New router keys at every restart. Disabled. */
    117118    public final static String PROP_DYNAMIC_KEYS = "router.dynamicKeys";
     119    /**
     120     *  New router keys once only.
     121     *  @since 0.9.34
     122     */
     123    public final static String PROP_REBUILD_KEYS = "router.rebuildKeys";
    118124    /** deprecated, use gracefulShutdownInProgress() */
    119125    private final static String PROP_SHUTDOWN_IN_PROGRESS = "__shutdownInProgress";
     
    628634        //        killKeys();
    629635        //}
     636        if (_context.getBooleanProperty(PROP_REBUILD_KEYS))
     637            killKeys();
    630638
    631639        _context.messageValidator().startup();
     
    11601168            removeConfigSetting(PROP_IB_RANDOM_KEY);
    11611169            removeConfigSetting(PROP_OB_RANDOM_KEY);
     1170            removeConfigSetting(PROP_REBUILD_KEYS);
    11621171            saveConfig();
    11631172        }
Note: See TracChangeset for help on using the changeset viewer.