[py] Update host to connect to get a port. Fixes
Since we no longer support PhantomJS we can get away from connecting
to 0.0.0.0 and rid ourselves of the annoying
popup on OSX.
@@ -36,7 +36,7 @@ def free_port():
Determines a free port using sockets.
"""
free_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
- free_socket.bind(('0.0.0.0', 0))
+ free_socket.bind(('127.0.0.1', 0))
free_socket.listen(5)
port = free_socket.getsockname()[1]
free_socket.close()
