mirror of
https://github.com/Flowseal/zapret-discord-youtube.git
synced 2026-03-08 09:07:17 +00:00
Исправление дублирования имён сервисов в проверке на VPN (#7369)
This commit is contained in:
@@ -473,9 +473,10 @@ if not exist "%BIN_PATH%\*.sys" (
|
||||
echo:
|
||||
|
||||
:: VPN
|
||||
set "VPN_SERVICES="
|
||||
sc query | findstr /I "VPN" > nul
|
||||
if !errorlevel!==0 (
|
||||
for /f "tokens=2 delims=:" %%A in ('sc query ^|^ findstr /I "VPN"') do (
|
||||
for /f "tokens=2 delims=:" %%A in ('sc query ^| findstr /I "VPN"') do (
|
||||
if not defined VPN_SERVICES (
|
||||
set "VPN_SERVICES=!VPN_SERVICES!%%A"
|
||||
) else (
|
||||
|
||||
Reference in New Issue
Block a user