mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 09:02:15 -06:00
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:
|
||||
return
|
||||
|
||||
cache.add(buf)
|
||||
srv: Optional[MDNS_Sck] = self.srv[sck] if v6 else self.map_client(cip) # type: ignore
|
||||
if not srv:
|
||||
return
|
||||
|
||||
cache.add(buf)
|
||||
now = time.time()
|
||||
|
||||
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:
|
||||
return
|
||||
|
||||
self.rxc.add(buf)
|
||||
srv: Optional[SSDP_Sck] = self.map_client(cip) # type: ignore
|
||||
if not srv:
|
||||
return
|
||||
|
||||
self.rxc.add(buf)
|
||||
if not buf.startswith(b"M-SEARCH * HTTP/1."):
|
||||
raise Exception("not an ssdp message")
|
||||
|
||||
|
|
Loading…
Reference in a new issue