zeroconf: ::ffff:127.* is also loopback addresses

This commit is contained in:
Stein Magnus Jodal 2014-07-17 00:25:16 +02:00
parent b685f2ae63
commit 47c507b8a7

View File

@ -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):