connector(): You can't use an empty string as an argument to connect()

on Windows.
This commit is contained in:
Tim Peters 2003-07-01 14:49:32 +00:00
parent 93ceaea01f
commit 37ca8c12dc

View file

@ -45,7 +45,7 @@ def listener():
def connector():
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect(('', PORT))
s.connect(('localhost', PORT))
try:
ssl_sock = socket.ssl(s)
except socket.sslerror: