quotes?
This commit is contained in:
parent
4e44eacaff
commit
2cdbb1670c
1 changed files with 2 additions and 2 deletions
|
@ -28,8 +28,8 @@ class SSDPProtocol(MulticastProtocol):
|
||||||
if (address, service) in self.discover_callbacks:
|
if (address, service) in self.discover_callbacks:
|
||||||
return self.discover_callbacks[(address, service)]
|
return self.discover_callbacks[(address, service)]
|
||||||
packet = SSDPDatagram(
|
packet = SSDPDatagram(
|
||||||
SSDPDatagram._M_SEARCH, host="{}:{}".format(SSDP_IP_ADDRESS, SSDP_PORT), st=service, man=SSDP_DISCOVER,
|
SSDPDatagram._M_SEARCH, host="{}:{}".format(SSDP_IP_ADDRESS, SSDP_PORT), st=service,
|
||||||
mx=1
|
man="\"%s\"" % SSDP_DISCOVER, mx=1
|
||||||
)
|
)
|
||||||
log.debug("sending packet to %s:%i: %s", address, SSDP_PORT, packet)
|
log.debug("sending packet to %s:%i: %s", address, SSDP_PORT, packet)
|
||||||
self.transport.sendto(packet.encode().encode(), (address, SSDP_PORT))
|
self.transport.sendto(packet.encode().encode(), (address, SSDP_PORT))
|
||||||
|
|
Loading…
Reference in a new issue