mirror of
https://github.com/Flowseal/zapret-discord-youtube.git
synced 2026-03-08 09:07:17 +00:00
Diagnostics check for hosts youtube entries
This commit is contained in:
11
service.bat
11
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!"
|
||||
|
||||
Reference in New Issue
Block a user