From 47c507b8a76108fd673f608e74bbbb0a4716cc61 Mon Sep 17 00:00:00 2001 From: Stein Magnus Jodal Date: Thu, 17 Jul 2014 00:25:16 +0200 Subject: [PATCH] zeroconf: ::ffff:127.* is also loopback addresses --- mopidy/zeroconf.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mopidy/zeroconf.py b/mopidy/zeroconf.py index fff6ff27..cdd84792 100644 --- a/mopidy/zeroconf.py +++ b/mopidy/zeroconf.py @@ -17,7 +17,10 @@ _AVAHI_PUBLISHFLAGS_NONE = 0 def _is_loopback_address(host): - return host.startswith('127.') or host == '::1' + return ( + host.startswith('127.') or + host.startswith('::ffff:127.') or + host == '::1') def _convert_text_to_dbus_bytes(text):