Permalink
Browse files

Make file names match to make this work. Also use zone name in the fi…

…le to not mix things
  • Loading branch information...
1 parent 71f4a2b commit 739808f779c730c8dc49499d3df27c1a8071c18c Ermal committed May 23, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 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}");
}

0 comments on commit 739808f

Please sign in to comment.