mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-25 20:33:08 +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:
|
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:
|
||||||
|
|
Loading…
Reference in a new issue