make excludePeerCaps configurable by the user, exclude KLMNO by default

pull/53/head
Zlatin Balevsky 2020-10-11 15:49:16 +01:00
parent e5815bed88
commit fca3478698
No known key found for this signature in database
GPG Key ID: A72832072D525E41
2 changed files with 4 additions and 1 deletions

View File

@ -172,6 +172,8 @@ public class Core {
i2pOptions["inbound.nickname"] = "MuWire"
if (!i2pOptions.containsKey("outbound.nickname"))
i2pOptions["outbound.nickname"] = "MuWire"
if (!i2pOptions.containsKey("router.excludePeerCaps"))
i2pOptions["router.excludePeerCaps"] = "KLMNO"
}
if (!(i2pOptions.containsKey("i2np.ntcp.port")
&& i2pOptions.containsKey("i2np.udp.port")
@ -198,7 +200,7 @@ public class Core {
routerProps.setProperty("i2p.dir.base", home.getAbsolutePath())
routerProps.setProperty("i2p.dir.config", home.getAbsolutePath())
routerProps.setProperty("geoip.dir", home.getAbsolutePath() + File.separator + "geoip")
routerProps.setProperty("router.excludePeerCaps", "KLM")
routerProps.setProperty("router.excludePeerCaps", i2pOptions["router.excludePeerCaps"])
routerProps.setProperty("i2np.inboundKBytesPerSecond", String.valueOf(props.inBw))
routerProps.setProperty("i2np.outboundKBytesPerSecond", String.valueOf(props.outBw))
routerProps.setProperty("i2cp.disableInterface", "true")

View File

@ -6,3 +6,4 @@ outbound.length=3
outbound.quantity=4
i2cp.tcp.host=127.0.0.1
i2cp.tcp.port=7654
router.excludePeerCaps=KLMNO