revert change in socket.py - does not need AF_INET6

This commit is contained in:
Fabian Franz 2022-07-27 23:09:45 +02:00
parent 1146724dfc
commit e5e95e2c1a

View File

@ -2,7 +2,7 @@ import socket
def getAvailablePort(): def getAvailablePort():
s = socket.socket(socket.AF_INET6, socket.SOCK_STREAM) s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.bind(("", 0)) s.bind(("", 0))
s.listen(1) s.listen(1)
port = s.getsockname()[1] port = s.getsockname()[1]