summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-09-25 17:31:55 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-09-25 17:31:55 +0000
commit683ba9052cbb85bc09435cabb434ff4f8f319ad1 (patch)
tree870a5f1eea06d3a908b249dc8b03f03cfe5c3cec
parent91cb6ca6997e426bdf38fcccae39c3bf54ce9a37 (diff)
downloadpfsense-683ba9052cbb85bc09435cabb434ff4f8f319ad1.zip
pfsense-683ba9052cbb85bc09435cabb434ff4f8f319ad1.tar.gz
Enumerate multiple aliases
-rw-r--r--etc/inc/pfsense-utils.inc11
1 files changed, 7 insertions, 4 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc
index 068144f..cea99e9 100644
--- a/etc/inc/pfsense-utils.inc
+++ b/etc/inc/pfsense-utils.inc
@@ -3700,15 +3700,18 @@ function add_hostname_to_watch($hostname) {
function find_dns_aliases() {
global $config, $g;
foreach($config['aliases']['alias'] as $alias) {
- if(stristr(" ", $alias)) {
- $alias_split = split(" ", $alias);
+ $alias_value = $alias['address'];
+ $alias_name = $alias['name'];
+ echo $alias_value . "\n";
+ if(stristr($alias_value, " ")) {
+ $alias_split = split(" ", $alias_value);
foreach($alias_split as $as) {
if(is_hostname($as))
add_hostname_to_watch($as);
}
} else {
- if(is_hostname($alias))
- add_hostname_to_watch($alias);
+ if(is_hostname($alias_value))
+ add_hostname_to_watch($alias_value);
}
}
}
OpenPOWER on IntegriCloud