From 2aea7ea3846c13eed318dc245a99b5318b3368df Mon Sep 17 00:00:00 2001 From: Flowseal Date: Sun, 22 Feb 2026 03:09:19 +0300 Subject: [PATCH] User lists --- .gitignore | 4 ++++ service.bat | 28 ++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+) diff --git a/.gitignore b/.gitignore index 74693f9..0d43f67 100644 --- a/.gitignore +++ b/.gitignore @@ -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 \ No newline at end of file diff --git a/service.bat b/service.bat index 2245cb9..e6c401c 100644 --- a/service.bat +++ b/service.bat @@ -25,11 +25,18 @@ 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 ( @@ -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