Diagnostics check for hosts youtube entries

This commit is contained in:
Flowseal
2026-02-23 16:11:26 +03:00
parent dc861c36ec
commit 0cbe689724

View File

@@ -549,6 +549,17 @@ if !dohfound!==0 (
)
echo:
:: Hosts file check
set "hostsFile=%SystemRoot%\System32\drivers\etc\hosts"
if exist "%hostsFile%" (
set "yt_found=0"
>nul 2>&1 findstr /I "youtube.com" "%hostsFile%" && set "yt_found=1"
>nul 2>&1 findstr /I "yotou.be" "%hostsFile%" && set "yt_found=1"
if !yt_found!==1 (
call :PrintYellow "[?] Your hosts file contains entries for youtube.com or yotou.be. This may cause problems with YouTube access"
)
)
:: WinDivert conflict
tasklist /FI "IMAGENAME eq winws.exe" | find /I "winws.exe" > nul
set "winws_running=!errorlevel!"