aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2011-05-09 14:00:48 -0400
committerJoey Hess <joey@kitenet.net>2011-05-09 14:00:48 -0400
commit825f81340a823c9626839fbba574e5a3d7c409fa (patch)
treec010115b80fcb15b576eeb225f03e7ad3e1b9060 /IkiWiki
parentcb252846903c034feae1921f75236f784793f080 (diff)
downloadikiwiki-825f81340a823c9626839fbba574e5a3d7c409fa.tar
ikiwiki-825f81340a823c9626839fbba574e5a3d7c409fa.tar.gz
aggregate, pinger: Use Net::INET6Glue if available to support making ipv6 connections.
Making outgoing ipv6 connections for openid auth is still broken; the glue module does not seem to solve that, so I did not make openid use it.
Diffstat (limited to 'IkiWiki')
-rw-r--r--IkiWiki/Plugin/aggregate.pm1
-rw-r--r--IkiWiki/Plugin/pinger.pm2
2 files changed, 3 insertions, 0 deletions
diff --git a/IkiWiki/Plugin/aggregate.pm b/IkiWiki/Plugin/aggregate.pm
index e00116759..4a704617e 100644
--- a/IkiWiki/Plugin/aggregate.pm
+++ b/IkiWiki/Plugin/aggregate.pm
@@ -498,6 +498,7 @@ sub needsaggregate () {
}
sub aggregate (@) {
+ eval q{use Net::INET6Glue::INET_is_INET6}; # may not be available
eval q{use XML::Feed};
error($@) if $@;
eval q{use URI::Fetch};
diff --git a/IkiWiki/Plugin/pinger.pm b/IkiWiki/Plugin/pinger.pm
index 932619496..ea4f3e0dc 100644
--- a/IkiWiki/Plugin/pinger.pm
+++ b/IkiWiki/Plugin/pinger.pm
@@ -67,6 +67,8 @@ sub ping {
if (! $pinged && %pages) {
$pinged=1;
+ eval q{use Net::INET6Glue::INET_is_INET6}; # may not be available
+
my $ua;
eval q{use LWPx::ParanoidAgent};
if (!$@) {