Skip to content

Commit

Permalink
Merge pull request #8 from gbiddison/dev/fix_for_upstream_84
Browse files Browse the repository at this point in the history
upstream issue python-zeroconf#84 fix for windows compatibility
  • Loading branch information
gbiddison committed Dec 6, 2016
2 parents 15fa7fd + e589895 commit 2d1c63c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion zeroconf.py
Original file line number Diff line number Diff line change
Expand Up @@ -1597,7 +1597,9 @@ def get_all_addresses(address_family):
addr['addr']
for iface in netifaces.interfaces()
for addr in netifaces.ifaddresses(iface).get(address_family, [])
if addr.get('netmask') != HOST_ONLY_NETWORK_MASK
# windows compatibility --> https://github.com/jstasiak/python-zeroconf/issues/84
# testing on my osx, commenting this out has no effect on the returned list of addresses
# if addr.get('netmask') != HOST_ONLY_NETWORK_MASK
))


Expand Down

0 comments on commit 2d1c63c

Please sign in to comment.