dns: allow uPnP packets through

This commit is contained in:
2024-10-03 21:08:27 -04:00
parent 6a2682eaaf
commit e5028fb002
2 changed files with 8 additions and 0 deletions

View File

@ -420,6 +420,10 @@ static int WSAAPI hook_getaddrinfo(
goto end;
}
if (!strcmp(pNodeName, "239.255.255.250") && !strcmp(pServiceName, "1900")) {
return next_getaddrinfo(pNodeName, pServiceName, pHints, ppResult);
}
mbstowcs_s(&wstr_c, NULL, 0, pNodeName, 0);
wstr = malloc(wstr_c * sizeof(wchar_t));