mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-21 17:11:58 +00:00
Have SSDP ignore multicast disabled interfaces
This commit is contained in:
parent
ecd114ca5a
commit
1578b9c63b
@ -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