summaryrefslogtreecommitdiffstats
path: root/etc/inc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2012-05-23 10:49:25 +0000
committerErmal <eri@pfsense.org>2012-05-23 10:50:28 +0000
commit739808f779c730c8dc49499d3df27c1a8071c18c (patch)
tree08976101d45eb7843429f7c93c1450ead8bbb57f /etc/inc
parent71f4a2b70c7283fbc8b4aeb40527c76bfbbd7feb (diff)
downloadpfsense-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.inc4
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}");
}
OpenPOWER on IntegriCloud