IPv4 listen socket fix
- on OpenBSD, you can't have a socket that supports both IPv4 and IPv6. This allows handling for this error, and then it will try IPv4 only, just like for other similar errors.
This commit is contained in:
parent
191650f5a4
commit
0fa0599cd4
|
@ -91,7 +91,8 @@ class singleListener(threading.Thread, StoppableThread):
|
||||||
e.args[0] in (errno.EAFNOSUPPORT,
|
e.args[0] in (errno.EAFNOSUPPORT,
|
||||||
errno.EPFNOSUPPORT,
|
errno.EPFNOSUPPORT,
|
||||||
errno.EADDRNOTAVAIL,
|
errno.EADDRNOTAVAIL,
|
||||||
errno.ENOPROTOOPT)):
|
errno.ENOPROTOOPT,
|
||||||
|
errno.EINVAL)):
|
||||||
sock = self._createListenSocket(socket.AF_INET)
|
sock = self._createListenSocket(socket.AF_INET)
|
||||||
else:
|
else:
|
||||||
raise
|
raise
|
||||||
|
|
Loading…
Reference in New Issue
Block a user