[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [flashproxy/master] Ignore socket.error in setting IPV6_V6ONLY.
commit 3f830e70acc9cb239a5b7197e6eee67d088bec0c
Author: David Fifield <david@xxxxxxxxxxxxxxx>
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
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits