summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-02-12 18:42:10 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-02-12 18:42:10 +0000
commit26a5f74e25f81578c52b10e6bd369eb9b18caebf (patch)
tree6f70c7301171f980141cf82bb2c4992610a85950
parent7fc9b85f949a696c30c08f4aadb40e1d1ebfe18c (diff)
downloadpfsense-26a5f74e25f81578c52b10e6bd369eb9b18caebf.zip
pfsense-26a5f74e25f81578c52b10e6bd369eb9b18caebf.tar.gz
Expand $alias to correct interface
-rw-r--r--etc/inc/filter.inc6
1 files changed, 5 insertions, 1 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc
index 508a23d..5a4fd84 100644
--- a/etc/inc/filter.inc
+++ b/etc/inc/filter.inc
@@ -254,6 +254,7 @@ function filter_get_rule_real_interface($associatedrulenumber) {
function filter_is_queue_being_used_on_interface($queuename, $interface) {
global $config;
+ if(!is_array($config['shaper']['rule'])) return;
foreach($config['shaper']['rule'] as $rule) {
if($rule['targetqueue'] == $queuename && $rule['interface'] == $interface)
return $interface;
@@ -1249,7 +1250,10 @@ EOD;
}
// translate wan, man, lan, opt to real interface.
- $line .= "on \$" . $rule['interface'] . " ";
+ $interface = $rule['interface'];
+ $temp = filter_get_opt_interface_descr($interface);
+ if($temp <> "") $interface = $temp;
+ $line .= "on \$" . $interface . " ";
if (isset($rule['protocol'])) {
if($rule['protocol'] == "tcp/udp")
OpenPOWER on IntegriCloud