Merge pull request #2123 from UrBnW/watchint
fix(whatchguard) maxint issue
This commit is contained in:
commit
bacd6967c8
|
@ -122,6 +122,11 @@ sub manage_selection {
|
||||||
$self->{output}->output_add(long_msg => "skipping '" . $result->{wgPolicyName} . "': no matching filter.", debug => 1);
|
$self->{output}->output_add(long_msg => "skipping '" . $result->{wgPolicyName} . "': no matching filter.", debug => 1);
|
||||||
next;
|
next;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Must be a Watchguard bug, where wgPolicyCurrActiveConns sporadically returns 2^32−1...
|
||||||
|
if ($result->{wgPolicyCurrActiveConns} == 4294967295) {
|
||||||
|
$result->{wgPolicyCurrActiveConns} = 0;
|
||||||
|
}
|
||||||
|
|
||||||
$self->{policy}->{$instance} = { display => $result->{wgPolicyName},
|
$self->{policy}->{$instance} = { display => $result->{wgPolicyName},
|
||||||
%$result
|
%$result
|
||||||
|
|
Loading…
Reference in New Issue