mirror of
https://github.com/Flowseal/zapret-discord-youtube.git
synced 2026-03-08 09:07:17 +00:00
User lists
This commit is contained in:
4
.gitignore
vendored
4
.gitignore
vendored
@@ -1 +1,5 @@
|
||||
/utils/test results
|
||||
/lists/ipset-all-user.txt
|
||||
/lists/ipset-exclude-user.txt
|
||||
/lists/list-general-user.txt
|
||||
/lists/list-exclude-user.txt
|
||||
28
service.bat
28
service.bat
@@ -25,12 +25,19 @@ if "%~1"=="load_game_filter" (
|
||||
exit /b
|
||||
)
|
||||
|
||||
if "%~1"=="load_user_lists" (
|
||||
call :load_user_lists
|
||||
exit /b
|
||||
)
|
||||
|
||||
if "%1"=="admin" (
|
||||
call :check_command chcp
|
||||
call :check_command find
|
||||
call :check_command findstr
|
||||
call :check_command netsh
|
||||
|
||||
call :load_user_lists
|
||||
|
||||
echo Started with admin rights
|
||||
) else (
|
||||
call :check_extracted
|
||||
@@ -96,6 +103,27 @@ if "%menu_choice%"=="0" exit /b
|
||||
goto menu
|
||||
|
||||
|
||||
:: LOAD USER LISTS =====================
|
||||
:load_user_lists
|
||||
set "LISTS_PATH=%~dp0lists\"
|
||||
|
||||
if not exist "%LISTS_PATH%ipset-all-user.txt" (
|
||||
echo 203.0.113.113/32>"%LISTS_PATH%ipset-all-user.txt"
|
||||
)
|
||||
if not exist "%LISTS_PATH%ipset-exclude-user.txt" (
|
||||
echo 203.0.113.113/32>"%LISTS_PATH%ipset-exclude-user.txt"
|
||||
)
|
||||
|
||||
if not exist "%LISTS_PATH%list-general-user.txt" (
|
||||
echo domain.example.abc>"%LISTS_PATH%list-general-user.txt"
|
||||
)
|
||||
if not exist "%LISTS_PATH%list-exclude-user.txt" (
|
||||
echo domain.example.abc>"%LISTS_PATH%list-exclude-user.txt"
|
||||
)
|
||||
|
||||
exit /b
|
||||
|
||||
|
||||
:: TCP ENABLE ==========================
|
||||
:tcp_enable
|
||||
netsh interface tcp show global | findstr /i "timestamps" | findstr /i "enabled" > nul || netsh interface tcp set global timestamps=enabled > nul 2>&1
|
||||
|
||||
Reference in New Issue
Block a user