mirror of
https://github.com/Flowseal/zapret-discord-youtube.git
synced 2025-06-23 06:40:00 -07:00
Compare commits
3 Commits
795b2f5624
...
869f9808b5
Author | SHA1 | Date | |
---|---|---|---|
|
869f9808b5 | ||
|
785b8de6d2 | ||
|
adcd57c9dc |
@ -44,3 +44,4 @@ ffzap.com
|
||||
betterttv.net
|
||||
7tv.app
|
||||
7tv.io
|
||||
maven.neoforged.net
|
||||
|
31
service.bat
31
service.bat
@ -35,8 +35,9 @@ echo 3. Check Service Status
|
||||
echo 4. Run Diagnostics
|
||||
echo 5. Check Updates
|
||||
echo 6. Switch ipset (%IPsetStatus%)
|
||||
echo 7. Update ipset list
|
||||
echo 0. Exit
|
||||
set /p menu_choice=Enter choice (0-6):
|
||||
set /p menu_choice=Enter choice (0-7):
|
||||
|
||||
if "%menu_choice%"=="1" goto service_install
|
||||
if "%menu_choice%"=="2" goto service_remove
|
||||
@ -44,6 +45,7 @@ if "%menu_choice%"=="3" goto service_status
|
||||
if "%menu_choice%"=="4" goto service_diagnostics
|
||||
if "%menu_choice%"=="5" goto service_check_updates
|
||||
if "%menu_choice%"=="6" goto ipset_switch
|
||||
if "%menu_choice%"=="7" goto ipset_update
|
||||
if "%menu_choice%"=="0" exit /b
|
||||
goto menu
|
||||
|
||||
@ -447,6 +449,33 @@ pause
|
||||
goto menu
|
||||
|
||||
|
||||
:: IPSET UPDATE =======================
|
||||
:ipset_update
|
||||
chcp 437 > nul
|
||||
cls
|
||||
|
||||
set "listFile=%~dp0lists\ipset-all.txt"
|
||||
set "url=https://raw.githubusercontent.com/Flowseal/zapret-discord-youtube/refs/heads/main/lists/ipset-all.txt"
|
||||
|
||||
echo Updating ipset-all...
|
||||
|
||||
if exist "%SystemRoot%\System32\curl.exe" (
|
||||
curl -L -o "%listFile%" "%url%"
|
||||
) else (
|
||||
powershell -Command ^
|
||||
"$url = '%url%';" ^
|
||||
"$out = '%listFile%';" ^
|
||||
"$dir = Split-Path -Parent $out;" ^
|
||||
"if (-not (Test-Path $dir)) { New-Item -ItemType Directory -Path $dir | Out-Null };" ^
|
||||
"$res = Invoke-WebRequest -Uri $url -TimeoutSec 10 -UseBasicParsing;" ^
|
||||
"if ($res.StatusCode -eq 200) { $res.Content | Out-File -FilePath $out -Encoding UTF8 } else { exit 1 }"
|
||||
)
|
||||
|
||||
echo Finished
|
||||
|
||||
pause
|
||||
goto menu
|
||||
|
||||
:: Utility functions
|
||||
|
||||
:PrintGreen
|
||||
|
Loading…
Reference in New Issue
Block a user