diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2010-07-06 14:36:57 -0400 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2010-07-06 14:36:57 -0400 |
commit | 11ecbf135d1a3383af1868dcb9be8dc9143f619b (patch) | |
tree | 4308c2148e51ed766e4804b015278f1deed491d5 | |
parent | 3821f3daa8d44ce2138a580bd8d5d2a67835d2e9 (diff) | |
download | pfsense-11ecbf135d1a3383af1868dcb9be8dc9143f619b.zip pfsense-11ecbf135d1a3383af1868dcb9be8dc9143f619b.tar.gz |
Check for 127.0.0.1 as well
-rw-r--r-- | etc/inc/auth.inc | 2 |
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']) |