mirror of
https://github.com/Flowseal/zapret-discord-youtube.git
synced 2026-10-21 11:08:44 +00:00
Вывод сервисов VPN в диагностиках (#6135)
This commit is contained in:
1 parent
52fd70e98a
commit
f3556ec9c8
1 file changed
+8
-1
+8
-1
@@ -451,7 +451,14 @@ echo:
|
|||||||
:: VPN
|
:: VPN
|
||||||
sc query | findstr /I "VPN" > nul
|
sc query | findstr /I "VPN" > nul
|
||||||
if !errorlevel!==0 (
|
if !errorlevel!==0 (
|
||||||
call :PrintYellow "[?] Some VPN services found. Some VPNs can conflict with zapret"
|
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 (
|
||||||
|
set "VPN_SERVICES=!VPN_SERVICES!,%%A"
|
||||||
|
)
|
||||||
|
)
|
||||||
|
call :PrintYellow "[?] VPN services found:!VPN_SERVICES!. Some VPNs can conflict with zapret"
|
||||||
call :PrintYellow "Make sure that all VPNs are disabled"
|
call :PrintYellow "Make sure that all VPNs are disabled"
|
||||||
) else (
|
) else (
|
||||||
call :PrintGreen "VPN check passed"
|
call :PrintGreen "VPN check passed"
|
||||||
|
|||||||
Reference in new issue
Block a user