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:
parent
625434fcaf
commit
6a30afa31e
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user