diff options
author | Joey Hess <joey@kitenet.net> | 2011-05-09 14:00:48 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2011-05-09 14:00:48 -0400 |
commit | 825f81340a823c9626839fbba574e5a3d7c409fa (patch) | |
tree | c010115b80fcb15b576eeb225f03e7ad3e1b9060 /IkiWiki/Plugin | |
parent | cb252846903c034feae1921f75236f784793f080 (diff) | |
download | ikiwiki-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/Plugin')
-rw-r--r-- | IkiWiki/Plugin/aggregate.pm | 1 | ||||
-rw-r--r-- | IkiWiki/Plugin/pinger.pm | 2 |
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 (!$@) { |