diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-11-21 19:20:45 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-11-21 19:20:45 +0000 |
commit | 4bae67f61619df8e6a7aac69c8e7cde5473e4a77 (patch) | |
tree | 3d742612a4fc6945aaab590a0247410cb11c42e7 | |
parent | 82d39cc07fa4f5a9703b4d1a707cbcefbaae6b02 (diff) | |
download | pfsense-4bae67f61619df8e6a7aac69c8e7cde5473e4a77.zip pfsense-4bae67f61619df8e6a7aac69c8e7cde5473e4a77.tar.gz |
MFC 7934
Expand src and dst aliases if required on traffic shaping rules
Ticket #696
-rw-r--r-- | etc/inc/shaper.inc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/etc/inc/shaper.inc b/etc/inc/shaper.inc index 4350d88..d2598b2 100644 --- a/etc/inc/shaper.inc +++ b/etc/inc/shaper.inc @@ -476,7 +476,9 @@ function filter_generate_pf_altq_rules() { } } } else if ($rule['source']['address']) { - $src = $rule['source']['address']; + $src = alias_expand($rule['source']['address']); + if(!$src) + $src = $rule['source']['address']; } if (!$src) { @@ -535,7 +537,9 @@ function filter_generate_pf_altq_rules() { } } } else if ($rule['destination']['address']) { - $dst = $rule['destination']['address']; + $dst = alias_expand($rule['destination']['address']); + if(!$dst) + $dst = $rule['destination']['address']; } if (!$dst) { |