From 61a4f45722337bcd4ff40305963a9401b777f10d Mon Sep 17 00:00:00 2001 From: Nick Bowler Date: Wed, 28 May 2008 09:56:43 -0400 Subject: [PATCH] mpdmenu: Use IO::Socket::INET6 to support IPv6 as well as IPv4. --- scripts/mpdmenu.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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' -- 2.43.0