fix(whatchguard) maxint issue

This commit is contained in:
UrBnW 2020-07-24 15:24:22 +02:00
parent 3224b52834
commit 0b7dc24d34
1 changed files with 5 additions and 0 deletions

View File

@ -122,6 +122,11 @@ sub manage_selection {
$self->{output}->output_add(long_msg => "skipping '" . $result->{wgPolicyName} . "': no matching filter.", debug => 1);
next;
}
# Must be a Watchguard bug, where wgPolicyCurrActiveConns sporadically returns 2^321...
if ($result->{wgPolicyCurrActiveConns} == 4294967295) {
$result->{wgPolicyCurrActiveConns} = 0;
}
$self->{policy}->{$instance} = { display => $result->{wgPolicyName},
%$result