commit 6094d4bb43341059482355582aaafbd82cd89e1f
parent c90f1e5a5799e1a7a8b95f0412e1072622f19122
Author: Sheng <webmaster0115@gmail.com>
Date: Thu, 26 Apr 2018 22:13:32 +0800
Change listen address to 127.0.0.1
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/sshserver.py b/tests/sshserver.py
@@ -81,7 +81,7 @@ def run_ssh_server(app):
# now connect
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
- sock.bind(('', 2200))
+ sock.bind(('127.0.0.1', 2200))
sock.listen(100)
while not app._tear_down: