Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/ssh_host_key.rb')
-rw-r--r--app/models/ssh_host_key.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/models/ssh_host_key.rb b/app/models/ssh_host_key.rb
index 672a6d64127..f0855fc9f1c 100644
--- a/app/models/ssh_host_key.rb
+++ b/app/models/ssh_host_key.rb
@@ -137,12 +137,13 @@ class SshHostKey
end
def normalize_url(url)
- url, real_hostname = Gitlab::UrlBlocker.validate!(
+ url, real_hostname = Gitlab::HTTP_V2::UrlBlocker.validate!(
url,
schemes: %w[ssh],
allow_localhost: allow_local_requests?,
allow_local_network: allow_local_requests?,
- dns_rebind_protection: Gitlab::CurrentSettings.dns_rebinding_protection_enabled?
+ dns_rebind_protection: Gitlab::CurrentSettings.dns_rebinding_protection_enabled?,
+ deny_all_requests_except_allowed: Gitlab::CurrentSettings.deny_all_requests_except_allowed?
)
# When DNS rebinding protection is required, the hostname is replaced by the