Update MDNS.py: Avoid spam loop on Windows 11 23H2 and above

This commit is contained in:
Jeff McJunkin 2024-09-23 13:55:04 -07:00 committed by GitHub
commit 6064cf765f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -58,6 +58,8 @@ class MDNS(BaseRequestHandler):
data, soc = self.request
Request_Name = Parse_MDNS_Name(data)
MDNSType = Parse_IPV6_Addr(data)
if b"_dosvc" in data:
return
# Break out if we don't want to respond to this host
if (not Request_Name) or (RespondToThisHost(self.client_address[0].replace("::ffff:",""), Request_Name) is not True):