branch: externals/websocket
commit 8d0ca79cd32b08f1f52c7172f2b1b05bff84ff2d
Author: Christopher Warrington <[email protected]>
Commit: Christopher Warrington <[email protected]>
Have functional test use :host 'local
* Both the Tornado server and the Emacs server now only listen on
localhost. There shouldn't be anymore firewall prompts, unless there's
a crazy strict firewall being used.
---
testserver.py | 2 +-
websocket-functional-test.el | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/testserver.py b/testserver.py
index 5cfcb96156..e75d1d4216 100644
--- a/testserver.py
+++ b/testserver.py
@@ -29,6 +29,6 @@ if __name__ == "__main__":
(r"/", EchoWebSocket),
])
server = httpserver.HTTPServer(application)
- server.listen(9999)
+ server.listen(9999, "127.0.0.1")
logging.info("STARTED: Server start listening")
ioloop.IOLoop.instance().start()
diff --git a/websocket-functional-test.el b/websocket-functional-test.el
index 6a9481fc23..ba6360cc74 100644
--- a/websocket-functional-test.el
+++ b/websocket-functional-test.el
@@ -123,6 +123,7 @@
(setq wstest-closed nil)
(setq server-conn (websocket-server
9998
+ :host 'local
:on-message (lambda (ws frame)
(message "Server received text!")
(websocket-send-text ws