From 5051e678ce9f34ee10f66e6d053c971984740348 Mon Sep 17 00:00:00 2001 From: SpikeHD Date: Sat, 30 Apr 2022 02:51:10 -0700 Subject: [PATCH] update proxy launch based on grasscutter --- resources/js/onLoad.js | 1 + scripts/private_server_launch.cmd | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/resources/js/onLoad.js b/resources/js/onLoad.js index 88bfb85..a1e8773 100644 --- a/resources/js/onLoad.js +++ b/resources/js/onLoad.js @@ -4,6 +4,7 @@ * should be done here to ensure DOM contents are loaded. */ document.addEventListener('DOMContentLoaded', async () => { + displayUpdate(); setBackgroundImage(); displayGameFolder(); displayServerFolder(); diff --git a/scripts/private_server_launch.cmd b/scripts/private_server_launch.cmd index cfc3948..0cc7b12 100644 --- a/scripts/private_server_launch.cmd +++ b/scripts/private_server_launch.cmd @@ -41,7 +41,7 @@ reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v Pr reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyServer /d "127.0.0.1:8080" /f >nul 2>nul :: Start proxy server -start "Proxy Server" "%ORIGIN%/ext/mitmdump.exe" -s "%ORIGIN%/proxy/proxy.py" --ssl-insecure --set ip=%IP% --set port=%PORT% --set use_https=%USE_HTTPS% +start "Proxy Server" "%ORIGIN%/ext/mitmdump.exe" -s "%ORIGIN%/proxy/proxy.py" -k --allow-hosts ".*\.yuanshen\.com|.*\.mihoyo\.com|.*\.hoyoverse\.com" --ssl-insecure --set ip=%IP% --set port=%PORT% --set use_https=%USE_HTTPS% echo Opening %GAME_PATH%