dns: allow uPnP packets through
This commit is contained in:
parent
6a2682eaaf
commit
e5028fb002
@ -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));
|
||||||
|
|
||||||
|
@ -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. */
|
||||||
|
Loading…
Reference in New Issue
Block a user