aboutsummaryrefslogtreecommitdiffhomepage
path: root/share
diff options
context:
space:
mode:
authorGravatar Konrad Borowski <GlitchMr@users.noreply.github.com>2014-02-27 14:47:08 +0100
committerGravatar Konrad Borowski <GlitchMr@users.noreply.github.com>2014-02-27 14:47:08 +0100
commit6d749789ce240a3e6f1447777db63fd8e7525560 (patch)
tree9a2be93adb293faa0c003d08ddabb7dd26a6ee35 /share
parent3224062b3237f518b7854cde5e8548c83d9a2066 (diff)
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.
Diffstat (limited to 'share')
-rwxr-xr-xshare/tools/web_config/webconfig.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/share/tools/web_config/webconfig.py b/share/tools/web_config/webconfig.py
index 3eb110bb..1236885d 100755
--- a/share/tools/web_config/webconfig.py
+++ b/share/tools/web_config/webconfig.py
@@ -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: