Include a tracker ID in new associated firewall rules.

This commit is contained in:
Chris Buechler 2016-01-29 01:42:52 -06:00
parent 1c1ca39bd5
commit 0d14e2ac8e

View File

@ -491,6 +491,7 @@ if ($_POST) {
// If this is a new rule, create an ID and add the rule
if ($_POST['filter-rule-association'] == 'add-associated') {
$filterent['associated-rule-id'] = $natent['associated-rule-id'] = get_unique_id();
$filterent['tracker'] = (int)microtime(true);
$filterent['created'] = make_config_revision_entry(null, gettext("NAT Port Forward"));
$config['filter']['rule'][] = $filterent;
}