summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2013-04-02 11:47:19 -0300
committerRenato Botelho <garga@FreeBSD.org>2013-04-02 12:34:43 -0300
commit43d049ac6a6710ee2d3c933d6c02ee44c5d81dc3 (patch)
tree335a8caa3e57b533ae5a6be29fcfdd59bf611c71 /etc
parent0b9e4e8fa1e87e8d5af71684bf2bfebe96448514 (diff)
downloadpfsense-43d049ac6a6710ee2d3c933d6c02ee44c5d81dc3.zip
pfsense-43d049ac6a6710ee2d3c933d6c02ee44c5d81dc3.tar.gz
Avoid adding URLs to filterdns.conf. It fixes #2921
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/filter.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc
index b56afac..4b3aabc 100644
--- a/etc/inc/filter.inc
+++ b/etc/inc/filter.inc
@@ -473,7 +473,7 @@ function filter_generate_nested_alias($name, $alias, &$aliasnesting, &$aliasaddr
else if(!isset($aliasnesting[$address]))
$tmpline = filter_generate_nested_alias($name, $aliastable[$address], $aliasnesting, $aliasaddrnesting);
} else if(!isset($aliasaddrnesting[$address])) {
- if (!is_ipaddr($address) && !is_subnet($address) && !is_port($address)) {
+ if (!is_ipaddr($address) && !is_subnet($address) && !is_port($address) && is_hostname($address)) {
$filterdns .= "pf {$address} {$name}\n";
/* Guarantee unique dns names on filterdns config */
$aliasaddrnesting[$address] = $address;
OpenPOWER on IntegriCloud