socket: Switch localhost to 127.0.0.1.

It does the same thing, but is a bit more robust to weird DNS
configurations.
This commit is contained in:
Tim Abbott
2016-09-13 10:01:53 -07:00
parent 9f41fc0882
commit 65321b77ac

View File

@@ -327,7 +327,7 @@ class MessageSenderWorker(QueueProcessingWorker):
environ = {'REQUEST_METHOD': 'SOCKET',
'SCRIPT_NAME': '',
'PATH_INFO': '/json/messages',
'SERVER_NAME': 'localhost',
'SERVER_NAME': '127.0.0.1',
'SERVER_PORT': 9993,
'SERVER_PROTOCOL': 'ZULIP_SOCKET/1.0',
'wsgi.version': (1, 0),