revert change in socket.py - does not need AF_INET6
This commit is contained in:
parent
1146724dfc
commit
e5e95e2c1a
@ -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]
|
||||||
|
Loading…
Reference in New Issue
Block a user