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
1 changed files with 1 additions and 1 deletions

View File

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