summaryrefslogtreecommitdiffstats
path: root/etc/inc/auth.inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2010-07-06 14:36:57 -0400
committerScott Ullrich <sullrich@pfsense.org>2010-07-06 14:36:57 -0400
commit11ecbf135d1a3383af1868dcb9be8dc9143f619b (patch)
tree4308c2148e51ed766e4804b015278f1deed491d5 /etc/inc/auth.inc
parent3821f3daa8d44ce2138a580bd8d5d2a67835d2e9 (diff)
downloadpfsense-11ecbf135d1a3383af1868dcb9be8dc9143f619b.zip
pfsense-11ecbf135d1a3383af1868dcb9be8dc9143f619b.tar.gz
Check for 127.0.0.1 as well
Diffstat (limited to 'etc/inc/auth.inc')
-rw-r--r--etc/inc/auth.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/etc/inc/auth.inc b/etc/inc/auth.inc
index 9610190..a248a6a 100644
--- a/etc/inc/auth.inc
+++ b/etc/inc/auth.inc
@@ -56,6 +56,8 @@ if (function_exists("display_error_form")) {
$found_host = false;
if($_SERVER['HTTP_HOST'] == "localhost" or $_SERVER['HTTP_HOST'] == "localhost")
$found_host = true;
+ if($_SERVER['HTTP_HOST'] == "127.0.0.1" or $_SERVER['HTTP_HOST'] == "127.0.0.1")
+ $found_host = true;
if($config['dyndnses']['dyndns'])
foreach($config['dyndnses']['dyndns'] as $dyndns)
if($dyndns['host'] == $_SERVER['HTTP_HOST'] or $dyndns['host'] == $_SERVER['SERVER_ADDR'])
OpenPOWER on IntegriCloud