diff options
author | Douwe Maan <douwe@selenight.nl> | 2018-04-02 18:13:47 +0300 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2018-04-02 18:24:19 +0300 |
commit | b290d929bc2f2d1d4922c046a84543744b67b982 (patch) | |
tree | 27bf1e40f673f00cd082a4993a27af35c83a14f3 /lib/gitlab/proxy_http_connection_adapter.rb | |
parent | b95918dda8c6cd5328d028492d36c3ee07e35943 (diff) |
Rename allow_private_networks to allow_local_network
Diffstat (limited to 'lib/gitlab/proxy_http_connection_adapter.rb')
-rw-r--r-- | lib/gitlab/proxy_http_connection_adapter.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/proxy_http_connection_adapter.rb b/lib/gitlab/proxy_http_connection_adapter.rb index 65ea8c22309..d682289b632 100644 --- a/lib/gitlab/proxy_http_connection_adapter.rb +++ b/lib/gitlab/proxy_http_connection_adapter.rb @@ -12,7 +12,7 @@ module Gitlab def connection unless allow_local_requests? begin - Gitlab::UrlBlocker.validate!(uri, allow_private_networks: false) + Gitlab::UrlBlocker.validate!(uri, allow_local_network: false) rescue Gitlab::UrlBlocker::BlockedUrlError => e raise Gitlab::HTTP::BlockedUrlError, "URL '#{uri}' is blocked: #{e.message}" end |