zeroconf: dont cache until resolved
This commit is contained in:
parent
195eb53995
commit
aa32f30202
@ -329,11 +329,11 @@ class MDNS(MCast):
|
|||||||
if buf in cache.c:
|
if buf in cache.c:
|
||||||
return
|
return
|
||||||
|
|
||||||
cache.add(buf)
|
|
||||||
srv: Optional[MDNS_Sck] = self.srv[sck] if v6 else self.map_client(cip) # type: ignore
|
srv: Optional[MDNS_Sck] = self.srv[sck] if v6 else self.map_client(cip) # type: ignore
|
||||||
if not srv:
|
if not srv:
|
||||||
return
|
return
|
||||||
|
|
||||||
|
cache.add(buf)
|
||||||
now = time.time()
|
now = time.time()
|
||||||
|
|
||||||
if self.args.zmv and cip != srv.ip and cip not in srv.ips:
|
if self.args.zmv and cip != srv.ip and cip not in srv.ips:
|
||||||
|
@ -154,11 +154,11 @@ class SSDPd(MCast):
|
|||||||
if buf in self.rxc.c:
|
if buf in self.rxc.c:
|
||||||
return
|
return
|
||||||
|
|
||||||
self.rxc.add(buf)
|
|
||||||
srv: Optional[SSDP_Sck] = self.map_client(cip) # type: ignore
|
srv: Optional[SSDP_Sck] = self.map_client(cip) # type: ignore
|
||||||
if not srv:
|
if not srv:
|
||||||
return
|
return
|
||||||
|
|
||||||
|
self.rxc.add(buf)
|
||||||
if not buf.startswith(b"M-SEARCH * HTTP/1."):
|
if not buf.startswith(b"M-SEARCH * HTTP/1."):
|
||||||
raise Exception("not an ssdp message")
|
raise Exception("not an ssdp message")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user