From 0fa0599cd4b4c43f601fb897f27b780332b201b1 Mon Sep 17 00:00:00 2001 From: Peter Surda Date: Sun, 26 Feb 2017 12:55:43 +0100 Subject: [PATCH] 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. --- src/class_singleListener.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/class_singleListener.py b/src/class_singleListener.py index f6bc9156..fb736698 100644 --- a/src/class_singleListener.py +++ b/src/class_singleListener.py @@ -91,7 +91,8 @@ class singleListener(threading.Thread, StoppableThread): e.args[0] in (errno.EAFNOSUPPORT, errno.EPFNOSUPPORT, errno.EADDRNOTAVAIL, - errno.ENOPROTOOPT)): + errno.ENOPROTOOPT, + errno.EINVAL)): sock = self._createListenSocket(socket.AF_INET) else: raise