From ffcf81bbb7b522eb6adc2aaccdf78b341cb3ea90 Mon Sep 17 00:00:00 2001 From: Chris Buechler Date: Wed, 16 Jun 2010 22:20:43 -0400 Subject: [PATCH] correct the limiter, it reversed up/down before --- etc/inc/captiveportal.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/etc/inc/captiveportal.inc b/etc/inc/captiveportal.inc index ce2a8340ea..83d8b31a63 100644 --- a/etc/inc/captiveportal.inc +++ b/etc/inc/captiveportal.inc @@ -805,9 +805,9 @@ function captiveportal_passthrumac_configure_entry($macent) { $rules .= "pipe {$bw_down} config bw {$macent['bw_down']}Kbit/s queue 100\n"; $actiondown = "pipe {$bw_down}"; } - $rules .= "add {$ruleno} {$actionup} ip from any to any MAC {$macent['mac']} any\n"; + $rules .= "add {$ruleno} {$actiondown} ip from any to any MAC {$macent['mac']} any\n"; $ruleno++; - $rules .= "add {$ruleno} {$actiondown} ip from any to any MAC any {$macent['mac']}\n"; + $rules .= "add {$ruleno} {$actionup} ip from any to any MAC any {$macent['mac']}\n"; return $rules; } @@ -1278,4 +1278,4 @@ function portal_ip_from_client_ip($cliip) { return false; } -?> +?> \ No newline at end of file