2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-25 11:01:09 +00:00

Have SSDP ignore multicast disabled interfaces

This commit is contained in:
Jarrod Johnson 2022-03-09 11:01:01 -05:00
parent 625434fcaf
commit 6a30afa31e

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')