[tor-commits] [flashproxy/master] Ignore socket.error in setting IPV6_V6ONLY.
dcf at torproject.org
dcf at torproject.org
Sat Mar 2 05:49:36 UTC 2013
commit 3f830e70acc9cb239a5b7197e6eee67d088bec0c
Author: David Fifield <david at bamsoftware.com>
Date: Fri Mar 1 21:07:27 2013 -0800
Ignore socket.error in setting IPV6_V6ONLY.
---
flashproxy-client | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/flashproxy-client b/flashproxy-client
index 6fc152c..ed97ced 100755
--- a/flashproxy-client
+++ b/flashproxy-client
@@ -492,6 +492,10 @@ def listen_socket(addr):
# http://bugs.python.org/issue6926. IPV6_V6ONLY is the default
# behavior on Windows anyway, so we can skip the setsockopt.
pass
+ except socket.error:
+ # Seen on Windows XP:
+ # socket.error: [Errno 109] Protocol not available
+ pass
s.bind(addr)
s.listen(10)
return s
More information about the tor-commits
mailing list