2011-11-24

audio::mpd gained ipv6 support

when i got a bug report asking for ipv6 support in audio::mpd, i didn't know where to start, and put it aside... but since i fixed quite a few test bugs in audio-mpd, i thought i could give a try at supporting ipv6.

and it proved quite easy in fact, with io::socket::ip which is a drop-in replacement for io::socket::inet... and thus, by changing 3 strings in audio-mpd, it is now ipv6 enabled - neat!

so, enable ipv6 on your software with the following one-liner:
$ ack -l 'IO::Socket::INET' | xargs perl -pi -E 's/IO::Socket::INET/IO::Socket::IP/g'
easy, uh? who said ipv6 was difficult? :-)

2 comments:

  1. Awesome. :)

    > who said ipv6 was difficult? :-)

    Not me. Infact I specifically said it isn't:

    http://leonerds-code.blogspot.com/2010/10/perl-iosocketip.html

    P.S.: I think you meant

    | xargs perl -i -pe 's/....'

    ReplyDelete
  2. @leonerd: oh yes, i forgot the -pi flags. and thanks for io::socket::ip! :-)

    ReplyDelete