mirror of
https://github.com/masterking32/MasterHttpRelayVPN.git
synced 2026-05-17 21:24:37 +03:00
Merge pull request #16 from mahan-bst/feature/uninstall-cert
feat: add unistall CA cert feature
This commit is contained in:
@@ -4,7 +4,8 @@ cd /d "%~dp0"
|
||||
|
||||
REM -------- MasterHttpRelayVPN one-click launcher (Windows) --------
|
||||
REM Creates a local virtualenv, installs deps, runs the setup wizard
|
||||
REM if needed, then starts the proxy.
|
||||
REM if needed, then starts the proxy. Also checks and installs CA cert
|
||||
REM if not already trusted.
|
||||
|
||||
set "VENV_DIR=.venv"
|
||||
set "PY="
|
||||
@@ -63,6 +64,14 @@ if not exist "config.json" (
|
||||
)
|
||||
)
|
||||
|
||||
REM -------- Check for uninstall flag --------
|
||||
if "%~1"=="--uninstall-cert" (
|
||||
echo [*] Uninstalling CA certificate ...
|
||||
"%VPY%" main.py --uninstall-cert
|
||||
exit /b %errorlevel%
|
||||
)
|
||||
|
||||
|
||||
echo.
|
||||
echo [*] Starting MasterHttpRelayVPN ...
|
||||
echo.
|
||||
|
||||
Reference in New Issue
Block a user