diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-02-11 00:08:12 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-02-11 00:08:12 +0300 |
commit | ddfa6a1f19f1c6847d30314858f1d0ad21de13f9 (patch) | |
tree | 715fd181e594d7c6339d90eb8daaa45c962f2565 /lib/gitlab/octokit | |
parent | f27a1b0faf16a83ba9c3f71f660262e368f4509a (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/octokit')
-rw-r--r-- | lib/gitlab/octokit/middleware.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/gitlab/octokit/middleware.rb b/lib/gitlab/octokit/middleware.rb index a92860f7eb8..0e47672bb3c 100644 --- a/lib/gitlab/octokit/middleware.rb +++ b/lib/gitlab/octokit/middleware.rb @@ -11,7 +11,8 @@ module Gitlab Gitlab::UrlBlocker.validate!(env[:url], schemes: %w[http https], allow_localhost: allow_local_requests?, - allow_local_network: allow_local_requests? + allow_local_network: allow_local_requests?, + dns_rebind_protection: dns_rebind_protection? ) @app.call(env) @@ -22,6 +23,10 @@ module Gitlab def allow_local_requests? Gitlab::CurrentSettings.allow_local_requests_from_web_hooks_and_services? end + + def dns_rebind_protection? + Gitlab::CurrentSettings.dns_rebinding_protection_enabled? + end end end end |