Skip to content

Commit 463428f

Browse files
committed
Don't fail when the netmask is unknown
1 parent b5e9e94 commit 463428f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

zeroconf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1209,7 +1209,7 @@ def get_all_addresses(address_family):
12091209
addr['addr']
12101210
for iface in netifaces.interfaces()
12111211
for addr in netifaces.ifaddresses(iface).get(address_family, [])
1212-
if addr['netmask'] != HOST_ONLY_NETWORK_MASK
1212+
if addr.get('netmask') != HOST_ONLY_NETWORK_MASK
12131213
]
12141214

12151215

0 commit comments

Comments
 (0)