diff options
author | jim-p <jimp@pfsense.org> | 2010-07-06 17:03:44 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2010-07-06 17:03:44 -0400 |
commit | 86b21903616c360707aaf7cc31868eb2a22e238d (patch) | |
tree | 282218dd282b4f98d46ffc3e3c7c7af842196d6a /etc/inc/auth.inc | |
parent | 4a820558758458b67618076d0e1ef12c1c2217b9 (diff) | |
download | pfsense-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.inc | 7 |
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']) |