summaryrefslogtreecommitdiffstats
path: root/etc/inc/authgui.inc
diff options
context:
space:
mode:
authorMatt Smith <mgsmith@netgate.com>2013-07-03 10:28:53 -0500
committerMatt Smith <mgsmith@netgate.com>2013-07-03 10:32:44 -0500
commit058bc2a8ed24109896b31de8224ed62a380c5b65 (patch)
tree4eb636d658d77dfdc7d4f81abb1b7c89f8bbe368 /etc/inc/authgui.inc
parent2bc45785ca3cbcce8f20d56d00a9a4433fb70db3 (diff)
downloadpfsense-058bc2a8ed24109896b31de8224ed62a380c5b65.zip
pfsense-058bc2a8ed24109896b31de8224ed62a380c5b65.tar.gz
Omit IP warning if HTTP_REFERER check is disabled.
Diffstat (limited to 'etc/inc/authgui.inc')
-rw-r--r--etc/inc/authgui.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/authgui.inc b/etc/inc/authgui.inc
index 57d0138..35d51c7 100644
--- a/etc/inc/authgui.inc
+++ b/etc/inc/authgui.inc
@@ -258,7 +258,7 @@ $have_cookies = isset($_COOKIE["cookie_test"]);
<body onload="page_load()">
<div id="login">
<?php
- if(is_ipaddr($http_host) && !$local_ip) {
+ if(is_ipaddr($http_host) && !$local_ip && !isset($config['system']['webgui']['nohttpreferercheck'])) {
$nifty_background = "#999";
print_info_box(gettext("You are accessing this router by an IP address not configured locally, which may be forwarded by NAT or other means. <br/><br/>If you did not setup this forwarding, you may be the target of a man-in-the-middle attack."));
}
OpenPOWER on IntegriCloud