diff --git src/allmydata/node.py src/allmydata/node.py
index b68ee2f..2fcc9fa 100644
|
|
class Node(service.MultiService): |
256 | 261 | |
257 | 262 | service.MultiService.startService(self) |
258 | 263 | d = defer.succeed(None) |
259 | | d.addCallback(lambda res: iputil.get_local_addresses_async()) |
| 264 | # I2P: don't give out our other addresses |
| 265 | if self.get_config("node", "anonymize_local_addresses", False, boolean=True): |
| 266 | d.addCallback(lambda res: ['127.0.0.1']) |
| 267 | else: |
| 268 | d.addCallback(lambda res: iputil.get_local_addresses_async()) |
260 | 269 | d.addCallback(self._setup_tub) |
261 | 270 | def _ready(res): |
262 | 271 | self.log("%s running" % self.NODETYPE) |
diff --git src/allmydata/scripts/create_node.py src/allmydata/scripts/create_node.py
index 4e23ac0..1d02931 100644
|
|
def write_node_config(c, config): |
73 | 73 | webport = "" |
74 | 74 | c.write("web.port = %s\n" % webport) |
75 | 75 | c.write("web.static = public_html\n") |
| 76 | c.write("anonymize_local_addresses = false\n") |
76 | 77 | c.write("#tub.port =\n") |
77 | 78 | c.write("#tub.location = \n") |
78 | 79 | c.write("#log_gatherer.furl =\n") |