mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-21 03:55:27 +00:00
make the nodeurl start with '127.0.0.1' instead of with 'localhost'
This is because there exist in the wild computers that are misconfigured so that 'localhost' doesn't resolve to 127.0.0.1. On those computers, using 'localhost' for the nodeurl is a security problem, because the user commonly sends valuable caps to the nodeurl.
This commit is contained in:
parent
ec3f140824
commit
a8a85da326
@ -1579,9 +1579,9 @@ class WebishServer(service.MultiService):
|
||||
# what is our webport?
|
||||
s = self.listener
|
||||
if isinstance(s, internet.TCPServer):
|
||||
base_url = "http://localhost:%d" % s._port.getHost().port
|
||||
base_url = "http://127.0.0.1:%d" % s._port.getHost().port
|
||||
elif isinstance(s, internet.SSLServer):
|
||||
base_url = "https://localhost:%d" % s._port.getHost().port
|
||||
base_url = "https://127.0.0.1:%d" % s._port.getHost().port
|
||||
else:
|
||||
base_url = None
|
||||
if base_url:
|
||||
|
Loading…
Reference in New Issue
Block a user