From ada3a43664f1a4d2a833a17fb1374245cf39e533 Mon Sep 17 00:00:00 2001 From: Flowseal Date: Wed, 24 Dec 2025 18:14:02 +0300 Subject: [PATCH] change ipset to any only if dpi checking --- utils/test zapret.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/test zapret.ps1 b/utils/test zapret.ps1 index 83c063e..bfa1161 100644 --- a/utils/test zapret.ps1 +++ b/utils/test zapret.ps1 @@ -539,7 +539,7 @@ Write-Host "============================================================" -Foreg try { # Save original ipset status and switch to 'any' for accurate DPI tests - if ($originalIpsetStatus -ne "any") { + if (($originalIpsetStatus -ne "any") -and ($testType -eq 'dpi')) { Write-Host "[WARNING] Ipset is in '$originalIpsetStatus' mode. Switching to 'any' for accurate DPI tests..." -ForegroundColor Yellow Set-IpsetMode -mode "any" # Create flag file to indicate ipset was switched