change ipset to any only if dpi checking

This commit is contained in:
Flowseal
2025-12-24 18:14:02 +03:00
parent 56977c45a1
commit ada3a43664

View File

@@ -539,7 +539,7 @@ Write-Host "============================================================" -Foreg
try { try {
# Save original ipset status and switch to 'any' for accurate DPI tests # 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 Write-Host "[WARNING] Ipset is in '$originalIpsetStatus' mode. Switching to 'any' for accurate DPI tests..." -ForegroundColor Yellow
Set-IpsetMode -mode "any" Set-IpsetMode -mode "any"
# Create flag file to indicate ipset was switched # Create flag file to indicate ipset was switched