1
0
mirror of synced 2024-11-23 21:40:58 +01:00

dns: allow uPnP packets through

This commit is contained in:
Kevin Trocolli 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; 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); mbstowcs_s(&wstr_c, NULL, 0, pNodeName, 0);
wstr = malloc(wstr_c * sizeof(wchar_t)); wstr = malloc(wstr_c * sizeof(wchar_t));

View File

@ -406,6 +406,10 @@ static uint32_t WINAPI hook_GetBestRoute(
(int) _byteswap_ulong(src_ip), (int) _byteswap_ulong(src_ip),
(int) _byteswap_ulong(dest_ip)); (int) _byteswap_ulong(dest_ip));
if ((int) _byteswap_ulong(src_ip) == 0xdfffffff) {
return next_GetBestRoute(src_ip, dest_ip, route);
}
memset(route, 0, sizeof(*route)); memset(route, 0, sizeof(*route));
/* This doesn't seem to get read? It just needs to succeed. */ /* This doesn't seem to get read? It just needs to succeed. */