X-Git-Url: https://git.draconx.ca/gitweb/fvwmconf.git/blobdiff_plain/0e41b01616fa8eecd6054393877a8c048c93889d..61a4f45722337bcd4ff40305963a9401b777f10d:/scripts/mpdmenu.pl 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'