From: Nick Bowler Date: Wed, 28 May 2008 13:56:43 +0000 (-0400) Subject: mpdmenu: Use IO::Socket::INET6 to support IPv6 as well as IPv4. X-Git-Url: http://git.draconx.ca/gitweb/fvwmconf.git/commitdiff_plain/61a4f45722337bcd4ff40305963a9401b777f10d mpdmenu: Use IO::Socket::INET6 to support IPv6 as well as IPv4. --- diff --git a/scripts/mpdmenu.pl b/scripts/mpdmenu.pl index 23569d5..7a48c20 100755 --- a/scripts/mpdmenu.pl +++ b/scripts/mpdmenu.pl @@ -3,7 +3,7 @@ use strict; use Getopt::Long; -use IO::Socket; +use IO::Socket::INET6; use constant { MPD_MJR_MIN => 0, @@ -46,7 +46,7 @@ $artist = decode_utf8($artist) if defined($artist); $title = decode_utf8($title) if defined($title);; # Connect to MPD. -my $sock = new IO::Socket::INET( +my $sock = new IO::Socket::INET6( PeerAddr => $host, PeerPort => $port, Proto => 'tcp'