Skip to content
This repository has been archived by the owner on Jul 5, 2022. It is now read-only.

Commit

Permalink
do not require qprocess
Browse files Browse the repository at this point in the history
  • Loading branch information
SpikeHD committed Apr 22, 2022
1 parent c196f0d commit 5020ce9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/killswitch.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ if "%PROXY_IP%" EQU "localhost" (

:: Check if the proxy server process is running
:: https://stackoverflow.com/questions/162291/how-to-check-if-a-process-is-running-via-a-batch-script
qprocess "mitmdump.exe">NUL
if %ERRORLEVEL% NEQ 0 (
tasklist /fi "ImageName eq mitmdump.exe" /fo csv 2>NUL | find /I "mitmdump.exe">NUL
if "%ERRORLEVEL%" NEQ "0" (
goto killgame
)

Expand Down

0 comments on commit 5020ce9

Please sign in to comment.