]> git.draconx.ca Git - mpdhacks.git/commitdiff
mpdmenu: Use IO::Socket::INET6 to support IPv6 as well as IPv4.
authorNick Bowler <nbowler@draconx.ca>
Wed, 28 May 2008 13:56:43 +0000 (09:56 -0400)
committerNick Bowler <nbowler@draconx.ca>
Sat, 29 Jun 2019 16:05:58 +0000 (12:05 -0400)
mpdmenu.pl

index 23569d5e17e29a35ea8c6571d8b6589c0f7ba90e..7a48c20d0c4a0104645004392e27d28313afa12a 100755 (executable)
@@ -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'