fix(native): handle local HTTPS and allow shared log reads
Use the loopback service certificate for the offline HTTPS path. Retain original host names for host-based routing and allow the network log to be read while the client is running.
This commit is contained in:
1 parent
b6b6effef3
commit
ddb381d7f9
5 files changed
+65
-18
No files matched your search
@@ -11,6 +11,7 @@
|
||||
#include "hook_config.h"
|
||||
#include "redirect_rules.h"
|
||||
|
||||
#include <share.h>
|
||||
#include <stdarg.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
@@ -60,7 +61,7 @@ void config_load(HMODULE self)
|
||||
find_folder(self);
|
||||
read_port();
|
||||
if (_snwprintf_s(path, MAX_PATH, _TRUNCATE, L"%swto_ws.log", g_folder) >= 0)
|
||||
_wfopen_s(&g_log, path, L"w");
|
||||
g_log = _wfsopen(path, L"w", _SH_DENYWR);
|
||||
log_line("wto_ws: local service port %u%s", g_service_port, g_service_port ? "" : " (none: outside connections are refused)");
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user