summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2011-06-22 21:25:35 +0000
committerErmal <eri@pfsense.org>2011-06-22 21:25:35 +0000
commite0ed1aa3bdb7f4ade846500caf936d082aff01d0 (patch)
treedd9049795cb5ce81c2a3329127eb4da4769a7da0
parentff629977e3d45c1d41fc12449e647abd8b780241 (diff)
downloadpfsense-e0ed1aa3bdb7f4ade846500caf936d082aff01d0.zip
pfsense-e0ed1aa3bdb7f4ade846500caf936d082aff01d0.tar.gz
The fix of Ticket #1341 broke the FQDN aliases with only one hostname entry, reported-by: http://forum.pfsense.org/index.php/topic,38051.0.html. Fix this regression by properly handling this cases.
-rw-r--r--etc/inc/filter.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc
index b62f7ce..6f91660 100644
--- a/etc/inc/filter.inc
+++ b/etc/inc/filter.inc
@@ -558,7 +558,8 @@ function filter_generate_aliases() {
$tableaddrs = "{$addrlist}{$extralias}";
if(empty($tableaddrs)) {
$aliases .= "table <{$aliased['name']}> persist\n";
- $after_filter_configure_run[] = "/sbin/pfctl -T flush -t " . escapeshellarg($aliased['name']);
+ if (empty($aliased['address']))
+ $after_filter_configure_run[] = "/sbin/pfctl -T flush -t " . escapeshellarg($aliased['name']);
} else
$aliases .= "table <{$aliased['name']}> { {$addrlist}{$extralias} } \n";
OpenPOWER on IntegriCloud