feat(native): route client traffic to the loopback service

Build the socket library and client-local port configuration for redirecting
traffic to the offline service. Accept HTTPS and the existing matching and
HTTP protocols on the same port. Route requests by the original host.
This commit is contained in:
N0VAN0M4LY committed 2026-11-25 05:02:34 +08:00
1 parent ddfc067874
commit 2428b34497
35 files changed
+3897 -23

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
/* Hooks on the system's ws2_32.dll exports. */
#pragma once
#include <winsock2.h>
#include <ws2tcpip.h>
/* Hook one export of the system's ws2_32.dll; *original receives the trampoline. Returns 1 on success. */
int hook_export(const char *name, void *replacement, void **original);
int install_resolver_hooks(void);
int install_connection_hooks(void);