fixes #14972 - ipset status detection

This commit is contained in:
Flowseal
2026-06-14 18:13:12 +03:00
parent 132df16b20
commit d1638825c6
2 changed files with 3 additions and 2 deletions

3
.gitattributes vendored
View File

@@ -1,2 +1,3 @@
*.bat text eol=crlf *.bat text eol=crlf
*.ps1 text eol=crlf *.ps1 text eol=crlf
*.txt text eol=crlf

View File

@@ -819,7 +819,7 @@ for /f %%i in ('type "%listFile%" 2^>nul ^| find /c /v ""') do set "lineCount=%%
if !lineCount!==0 ( if !lineCount!==0 (
set "IPsetStatus=any" set "IPsetStatus=any"
) else ( ) else (
findstr /R "^203\.0\.113\.113/32$" "%listFile%" >nul findstr /C:"203.0.113.113/32" "%listFile%" >nul
if !errorlevel!==0 ( if !errorlevel!==0 (
set "IPsetStatus=none" set "IPsetStatus=none"
) else ( ) else (