mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
If we could not parse a filter log rule, log the rule and ask them to report the rule to mailing list or forum
This commit is contained in:
parent
ac70ae79f4
commit
79a586b167
@ -128,15 +128,21 @@ function conv_clog($logfile, $tail = 50) {
|
||||
$tmp = split("/", $log_split[2]);
|
||||
$flent['rulenum'] = $tmp[0];
|
||||
|
||||
$shouldadd = true;
|
||||
|
||||
if($flent['src'] == "")
|
||||
continue;
|
||||
$shouldadd = false;
|
||||
if($flent['dst'] == "")
|
||||
continue;
|
||||
$shouldadd = true;
|
||||
if($flent['time'] == "")
|
||||
continue;
|
||||
$shouldadd = true;
|
||||
|
||||
$counter++;
|
||||
$filterlog[] = $flent;
|
||||
if($shouldadd == true) {
|
||||
$counter++;
|
||||
$filterlog[] = $flent;
|
||||
} else {
|
||||
log_error("There was a error parsing rule: $logent . Please report to mailing list or forum.");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user