diff --git src/allmydata/node.py src/allmydata/node.py index b68ee2f..2fcc9fa 100644 --- src/allmydata/node.py +++ src/allmydata/node.py @@ -256,7 +261,11 @@ class Node(service.MultiService): service.MultiService.startService(self) d = defer.succeed(None) - d.addCallback(lambda res: iputil.get_local_addresses_async()) + # I2P: don't give out our other addresses + if self.get_config("node", "anonymize_local_addresses", False, boolean=True): + d.addCallback(lambda res: ['127.0.0.1']) + else: + d.addCallback(lambda res: iputil.get_local_addresses_async()) d.addCallback(self._setup_tub) def _ready(res): self.log("%s running" % self.NODETYPE) diff --git src/allmydata/scripts/create_node.py src/allmydata/scripts/create_node.py index 4e23ac0..1d02931 100644 --- src/allmydata/scripts/create_node.py +++ src/allmydata/scripts/create_node.py @@ -73,6 +73,7 @@ def write_node_config(c, config): webport = "" c.write("web.port = %s\n" % webport) c.write("web.static = public_html\n") + c.write("anonymize_local_addresses = false\n") c.write("#tub.port =\n") c.write("#tub.location = \n") c.write("#log_gatherer.furl =\n")