summaryrefslogtreecommitdiffstats
path: root/etc/inc
diff options
context:
space:
mode:
authorMatt Smith <mgsmith@netgate.com>2013-07-02 16:29:42 -0500
committerMatt Smith <mgsmith@netgate.com>2013-07-03 10:36:05 -0500
commit31677598c327a965ee72a66d8be1c5caacd54290 (patch)
tree47c6349bb54d6d8b143014db60492c835b49830f /etc/inc
parent5ee53aa1c9520651791937928f60c8a1ba15b2e4 (diff)
downloadpfsense-31677598c327a965ee72a66d8be1c5caacd54290.zip
pfsense-31677598c327a965ee72a66d8be1c5caacd54290.tar.gz
Omit IP warning if HTTP_REFERER check is disabled.
Diffstat (limited to 'etc/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