Use 127.0.0.1 for fish config.

Before this change, fish config used 0 as its address. However, this
isn't a good idea from security point of view, as web service can be
accessed from everywhere, and do anything on the account it was ran on.

This also deals with firewalls which block the access to 0 even from
the host machine itself. It possibly might fix #673, but I'm not sure.
This commit is contained in:
Konrad Borowski 2014-02-27 14:47:08 +01:00
parent 3224062b32
commit 6d749789ce

View file

@ -812,7 +812,7 @@ PORT = 8000
while PORT <= 9000: while PORT <= 9000:
try: try:
Handler = FishConfigHTTPRequestHandler Handler = FishConfigHTTPRequestHandler
httpd = SocketServer.TCPServer(("", PORT), Handler) httpd = SocketServer.TCPServer(("127.0.0.1", PORT), Handler)
# Success # Success
break break
except socket.error: except socket.error: