diff --git a/router/java/src/net/i2p/router/RouterContext.java b/router/java/src/net/i2p/router/RouterContext.java index 52bfe2dd2..5475f0535 100644 --- a/router/java/src/net/i2p/router/RouterContext.java +++ b/router/java/src/net/i2p/router/RouterContext.java @@ -218,4 +218,29 @@ public class RouterContext extends I2PAppContext { buf.append(_reliabilityCalc).append('\n'); return buf.toString(); } + + /** + * Tie in the router's config as properties, as well as whatever the + * I2PAppContext says. + * + */ + public String getProperty(String propName) { + if (_router != null) { + String val = _router.getConfigSetting(propName); + if (val != null) return val; + } + return super.getProperty(propName); + } + /** + * Tie in the router's config as properties, as well as whatever the + * I2PAppContext says. + * + */ + public String getProperty(String propName, String defaultVal) { + if (_router != null) { + String val = _router.getConfigSetting(propName); + if (val != null) return val; + } + return super.getProperty(propName, defaultVal); + } } \ No newline at end of file