From 1f8c88190a610bc4fb732019e1b0dcdc2d7dd121 Mon Sep 17 00:00:00 2001 From: bcyrill Date: Sun, 27 Jan 2013 15:46:54 +0100 Subject: Fix ipfw config generation for allowed IPs --- etc/inc/captiveportal.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'etc/inc') diff --git a/etc/inc/captiveportal.inc b/etc/inc/captiveportal.inc index 968878c..71dd03e 100644 --- a/etc/inc/captiveportal.inc +++ b/etc/inc/captiveportal.inc @@ -987,9 +987,9 @@ function captiveportal_allowedip_configure_entry($ipent, $ishostname = false) { $enBwdown = empty($ipent['bw_down']) ? 0 : intval($ipent['bw_down']); $pipeno = captiveportal_get_next_dn_ruleno(); - $rules .= "pipe {$pipeno} config bw {$ipent['bw_up']}Kbit/s queue 100 buckets 16\n"; + $rules .= "pipe {$pipeno} config bw {$enBwup}Kbit/s queue 100 buckets 16\n"; $pipedown = $pipeno + 1; - $rules .= "pipe {$pipedown} config bw {$ipent['bw_down']}Kbit/s queue 100 buckets 16\n"; + $rules .= "pipe {$pipedown} config bw {$enBwdown}Kbit/s queue 100 buckets 16\n"; if ($ishostname === true) { $cp_filterdns_conf .= "ipfw {$ipent['hostname']} 3 pipe {$pipeno}\n"; $cp_filterdns_conf .= "ipfw {$ipent['hostname']} 4 pipe {$pipedown}\n"; -- cgit v1.1