Modify host header in HTTP requests to bypass domain censorship in China. (#34)

Co-authored-by: Sanheiii <35133371+Sanheiii@users.noreply.github.com>
Reviewed-on: Dniel97/segatools#34
Co-authored-by: Sanhei <sanhei@noreply.gitea.tendokyu.moe>
Co-committed-by: Sanhei <sanhei@noreply.gitea.tendokyu.moe>
This commit is contained in:
2024-11-11 16:24:33 +00:00
committed by Dniel97
parent 83840e0a87
commit ceb2b63e8b
10 changed files with 138 additions and 3 deletions

View File

@ -3,7 +3,7 @@
#include <windows.h>
#include <stddef.h>
void http_hook_init();
// if to_src is NULL, all lookups for from_src will fail
HRESULT dns_hook_push(const wchar_t *from_src, const wchar_t *to_src);