From 8473bfee96484cdcfa02b84aa6dfe314afc32104 Mon Sep 17 00:00:00 2001 From: Bastian Kleineidam Date: Sat, 29 Jan 2011 11:35:06 +0100 Subject: [PATCH] Properly detect missing IPv6 protocol support. --- doc/changelog.txt | 2 ++ linkcheck/socketutil.py | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/doc/changelog.txt b/doc/changelog.txt index 5e0d8d54..d4e9dfca 100644 --- a/doc/changelog.txt +++ b/doc/changelog.txt @@ -6,6 +6,8 @@ Fixes: - logging: Enforce encoding error policy when writing to stdout. - checking: Prevent error message from Geoip by using the correct API function when no city database is installed. +- checking: Properly detect case where IPv6 is not supported. + Closes: SF bug #3167249 6.2 "Despicable Me" (released 6.1.2011) diff --git a/linkcheck/socketutil.py b/linkcheck/socketutil.py index 1a5b880b..04864b3f 100644 --- a/linkcheck/socketutil.py +++ b/linkcheck/socketutil.py @@ -30,7 +30,8 @@ if socket.has_ipv6: # only catch these one: # socket.error: (97, 'Address family not supported by protocol') # socket.error: (10047, 'Address family not supported by protocol') - if msg.args[0] not in (97, 10047): + # socket.error: (43, 'Protocol not supported') + if msg.args[0] not in (97, 10047, 43): raise