]> git.proxmox.com Git - pve-firewall.git/blobdiff - src/PVE/FirewallSimulator.pm
add simulate command for easy testing
[pve-firewall.git] / src / PVE / FirewallSimulator.pm
index 98b7d4c4e6b84460a15da20bfafab481459038d0..73f01d3e8860ec46a9d73d4182e73b7a6ac7a10a 100644 (file)
@@ -593,6 +593,8 @@ sub simulate_firewall {
 
     add_trace("IPT statistics: invocation = $ic, checks = $rc\n");
  
+    return $res if $action eq 'QUERY';
+
     die "test failed ($res != $action)\n" if $action ne $res;
 
     return undef;