diff options
author | Ermal <eri@pfsense.org> | 2012-05-23 10:49:25 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2012-05-23 10:50:28 +0000 |
commit | 739808f779c730c8dc49499d3df27c1a8071c18c (patch) | |
tree | 08976101d45eb7843429f7c93c1450ead8bbb57f /etc/inc | |
parent | 71f4a2b70c7283fbc8b4aeb40527c76bfbbd7feb (diff) | |
download | pfsense-739808f779c730c8dc49499d3df27c1a8071c18c.zip pfsense-739808f779c730c8dc49499d3df27c1a8071c18c.tar.gz |
Make file names match to make this work. Also use zone name in the file to not mix things
Diffstat (limited to 'etc/inc')
-rw-r--r-- | etc/inc/captiveportal.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/captiveportal.inc b/etc/inc/captiveportal.inc index 25aa84f..a9c981c 100644 --- a/etc/inc/captiveportal.inc +++ b/etc/inc/captiveportal.inc @@ -1714,9 +1714,9 @@ function captiveportal_reapply_attributes($cpentry, $attributes) { } if (!empty($commands)) { - @file_put_contents("{$g['tmp_path']}/reattribute.rule.tmp", $commands); + @file_put_contents("{$g['tmp_path']}/reattribute{$cpzone}.rule.tmp", $commands); captiveportal_ipfw_set_context($cpzone); - mwexec("/sbin/ipfw -q {$g['tmp_path']}/tmprules.rules"); + mwexec("/sbin/ipfw -q {$g['tmp_path']}/reattribute{$cpzone}.rule.tmp"); captiveportal_logportalauth($cpentry[4], $cpentry[3], $cpentry[2], "RADIUS_BANDWIDTH_REAPPLY", "{$bw_up}/{$bw_down}"); } |