summaryrefslogtreecommitdiffstats
path: root/etc/inc/auth.inc
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2010-07-06 17:03:44 -0400
committerjim-p <jimp@pfsense.org>2010-07-06 17:03:44 -0400
commit86b21903616c360707aaf7cc31868eb2a22e238d (patch)
tree282218dd282b4f98d46ffc3e3c7c7af842196d6a /etc/inc/auth.inc
parent4a820558758458b67618076d0e1ef12c1c2217b9 (diff)
downloadpfsense-86b21903616c360707aaf7cc31868eb2a22e238d.zip
pfsense-86b21903616c360707aaf7cc31868eb2a22e238d.tar.gz
Add a text box where someone can enter in alternate hostnames for the system to bypass the DNS rebind checks.
Diffstat (limited to 'etc/inc/auth.inc')
-rw-r--r--etc/inc/auth.inc7
1 files changed, 7 insertions, 0 deletions
diff --git a/etc/inc/auth.inc b/etc/inc/auth.inc
index ac1df6b..75bb08f 100644
--- a/etc/inc/auth.inc
+++ b/etc/inc/auth.inc
@@ -68,6 +68,13 @@ if (function_exists("display_error_form") && !isset($config['system']['webgui'][
if($dyndns['host'] == $http_host or $dyndns['host'] == $_SERVER['SERVER_ADDR'])
$found_host = true;
+ if(!empty($config['system']['webgui']['althostnames'])) {
+ $althosts = explode(" ", $config['system']['webgui']['althostnames']);
+ foreach ($althosts as $ah)
+ if($ah == $http_host or $ah == $_SERVER['SERVER_ADDR'])
+ $found_host = true;
+ }
+
if($http_host == $config['system']['hostname'] . "." . $config['system']['domain'] or
$http_host == $_SERVER['SERVER_ADDR'] or
$http_host == $config['system']['hostname'])
OpenPOWER on IntegriCloud