Skip to content

Commit

Permalink
Update waf and rules version to the latest values
Browse files Browse the repository at this point in the history
  • Loading branch information
NachoEchevarria committed Oct 31, 2024
1 parent 7cf7e23 commit ea39cd5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -223,12 +223,12 @@ private async Task AggregateMetricsLoopAsync()
return _wafAndRulesVersionTags ?? _unknownWafAndRulesVersionTags;
}

if (string.Equals(metricKeyTags[0], "waf_version"))
if (metricKeyTags[0].StartsWith("waf_version"))
{
metricKeyTags[0] = (_wafAndRulesVersionTags ?? _unknownWafAndRulesVersionTags)[0];
}

if (metricKeyTags.Length > 1 && string.Equals(metricKeyTags[1], "event_rules_version"))
if (metricKeyTags.Length > 1 && metricKeyTags[1].StartsWith("event_rules_version"))
{
metricKeyTags[1] = (_wafAndRulesVersionTags ?? _unknownWafAndRulesVersionTags)[1];
}
Expand Down

0 comments on commit ea39cd5

Please sign in to comment.