fix: happ detection in diagnostics (#17740)

This commit is contained in:
Funsy authored and GitHub committed 2026-10-20 07:15:04 +03:00
1 parent 6f7d70003b
commit 16cf6b8cb4
1 file changed
+2 -2
+2 -2
View File
@@ -554,9 +554,9 @@ if not exist "%BIN_PATH%\*.sys" (
:: VPN :: VPN
set "VPN_SERVICES=" set "VPN_SERVICES="
sc query | findstr /I "VPN" > nul sc query | findstr /I "VPN HappService" > nul
if !errorlevel!==0 ( 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 HappService"') do (
if not defined VPN_SERVICES ( if not defined VPN_SERVICES (
set "VPN_SERVICES=!VPN_SERVICES!%%A" set "VPN_SERVICES=!VPN_SERVICES!%%A"
) else ( ) else (