diff --git a/service.bat b/service.bat index 538c8fb..933d776 100644 --- a/service.bat +++ b/service.bat @@ -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!"