2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-12-24 12:11:52 +00:00

Have SSDP ignore multicast disabled interfaces

This commit is contained in:
Jarrod Johnson 2022-03-09 11:01:01 -05:00
parent ecd114ca5a
commit 1578b9c63b

View File

@ -323,7 +323,11 @@ def _find_service(service, target):
msg = smsg.format(mcastv4addr, service)
if not isinstance(msg, bytes):
msg = msg.encode('utf8')
net4.sendto(msg, (mcastv4addr, 1900))
try:
net4.sendto(msg, (mcastv4addr, 1900))
except socket.error as se:
if se.errno != 101:
raise
msg = smsg.format(bcast, service)
if not isinstance(msg, bytes):
msg = msg.encode('utf8')