openbsd-ports/audio/py-mpd/patches/patch-mpd_py
ajacoutot 509ad7c137 Import py-mpd-0.2.0
Python client library for the Music Player Daemon.
2008-04-19 15:08:30 +00:00

13 lines
645 B
Plaintext

$OpenBSD: patch-mpd_py,v 1.1.1.1 2008/04/19 15:08:31 ajacoutot Exp $
--- mpd.py.orig Sat Apr 19 12:10:21 2008
+++ mpd.py Sat Apr 19 12:10:43 2008
@@ -293,7 +293,7 @@ class MPDClient(object):
msg = "getaddrinfo returns an empty list"
for res in socket.getaddrinfo(host, port, socket.AF_UNSPEC,
socket.SOCK_STREAM, socket.IPPROTO_TCP,
- socket.AI_ADDRCONFIG):
+ socket.AF_INET):
af, socktype, proto, canonname, sa = res
try:
self._sock = socket.socket(af, socktype, proto)