mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-10 23:24:39 +00:00
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:
parent
3224062b32
commit
6d749789ce
1 changed files with 1 additions and 1 deletions
|
@ -812,7 +812,7 @@ PORT = 8000
|
|||
while PORT <= 9000:
|
||||
try:
|
||||
Handler = FishConfigHTTPRequestHandler
|
||||
httpd = SocketServer.TCPServer(("", PORT), Handler)
|
||||
httpd = SocketServer.TCPServer(("127.0.0.1", PORT), Handler)
|
||||
# Success
|
||||
break
|
||||
except socket.error:
|
||||
|
|
Loading…
Reference in a new issue