summaryrefslogtreecommitdiffstats
path: root/etc/inc/auth.inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2010-07-06 14:35:11 -0400
committerScott Ullrich <sullrich@pfsense.org>2010-07-06 14:35:11 -0400
commitb6022a23920008186cb0e5e9206b43f4a84b3f37 (patch)
tree9d240ece68a5b1a7bce59ef576efb237b15f7f06 /etc/inc/auth.inc
parent0321fa1ba49f41e672fe0836a399e03ed05d38d5 (diff)
downloadpfsense-b6022a23920008186cb0e5e9206b43f4a84b3f37.zip
pfsense-b6022a23920008186cb0e5e9206b43f4a84b3f37.tar.gz
Add localhost as a valid host for SSH forwarding cases
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 2aca48f..462459f 100644
--- a/etc/inc/auth.inc
+++ b/etc/inc/auth.inc
@@ -54,6 +54,8 @@ require_once("config.gui.inc");
if (function_exists("display_error_form")) {
/* DNS ReBinding attack prevention. http://redmine.pfsense.org/issues/708 */
$found_host = false;
+ if($dyndns['host'] == "localhost")
+ $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