summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Util.pm
diff options
context:
space:
mode:
authorDylan William Hardison <dylan@hardison.net>2018-03-02 06:05:28 +0100
committerGitHub <noreply@github.com>2018-03-02 06:05:28 +0100
commit785a05910108a6d032e802605762d7567dec4123 (patch)
treef22f76884460d1ae17e2ed9edfef77fdf643168a /Bugzilla/Util.pm
parentb5ece2542a5416c97f3b9e060b877404349fafe6 (diff)
downloadbugzilla-785a05910108a6d032e802605762d7567dec4123.tar.gz
bugzilla-785a05910108a6d032e802605762d7567dec4123.tar.xz
Bug 1442520 - move inbound_proxies to localconfig
Diffstat (limited to 'Bugzilla/Util.pm')
-rw-r--r--Bugzilla/Util.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/Bugzilla/Util.pm b/Bugzilla/Util.pm
index c23e738e6..91f06e650 100644
--- a/Bugzilla/Util.pm
+++ b/Bugzilla/Util.pm
@@ -270,7 +270,7 @@ sub do_ssl_redirect_if_required {
# Returns the real remote address of the client,
sub remote_ip {
my $remote_ip = $ENV{'REMOTE_ADDR'} || '127.0.0.1';
- my @proxies = split(/[\s,]+/, Bugzilla->get_param_with_override('inbound_proxies'));
+ my @proxies = split(/[\s,]+/, Bugzilla->localconfig->{inbound_proxies});
my @x_forwarded_for = split(/[\s,]+/, $ENV{HTTP_X_FORWARDED_FOR} // '');
return $remote_ip unless @x_forwarded_for;