|
|
@ -198,14 +198,13 @@ public class Controller {
|
|
|
|
|
|
|
|
|
|
|
|
private void startRouter() {
|
|
|
|
private void startRouter() {
|
|
|
|
|
|
|
|
|
|
|
|
// need to launch Gui with parameters: --i2p.dir.base= and --i2p.dir.config=
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var params = Gui.instance.getParameters().getNamed();
|
|
|
|
var params = Gui.instance.getParameters().getNamed();
|
|
|
|
|
|
|
|
|
|
|
|
Properties routerProperties = new Properties();
|
|
|
|
Properties routerProperties = new Properties();
|
|
|
|
routerProperties.put("i2np.inboundKBytesPerSecond", getBandwidthLimitKBPerSec());
|
|
|
|
routerProperties.put("i2np.inboundKBytesPerSecond", getBandwidthLimitKBPerSec());
|
|
|
|
routerProperties.put("i2np.outboundKBytesPerSecond", getBandwidthLimitKBPerSec());
|
|
|
|
routerProperties.put("i2np.outboundKBytesPerSecond", getBandwidthLimitKBPerSec());
|
|
|
|
routerProperties.put("router.sharePercentage", 80);
|
|
|
|
routerProperties.put("router.sharePercentage", 80);
|
|
|
|
|
|
|
|
params.entrySet().stream().forEach(e->routerProperties.put(e.getKey(), e.getValue()));
|
|
|
|
routerWrapper = new RouterWrapper(routerProperties);
|
|
|
|
routerWrapper = new RouterWrapper(routerProperties);
|
|
|
|
routerWrapper.start();
|
|
|
|
routerWrapper.start();
|
|
|
|
|
|
|
|
|
|
|
|