diff options
Diffstat (limited to 'config/initializers/rest-client-hostname_override.rb')
-rw-r--r-- | config/initializers/rest-client-hostname_override.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/config/initializers/rest-client-hostname_override.rb b/config/initializers/rest-client-hostname_override.rb index bb8995a4659..2fb3b9fc27d 100644 --- a/config/initializers/rest-client-hostname_override.rb +++ b/config/initializers/rest-client-hostname_override.rb @@ -9,7 +9,8 @@ module RestClient begin ip, hostname_override = Gitlab::UrlBlocker.validate!(uri, allow_local_network: allow_settings_local_requests?, allow_localhost: allow_settings_local_requests?, - dns_rebind_protection: dns_rebind_protection?) + dns_rebind_protection: dns_rebind_protection?, + schemes: %w[http https]) self.hostname_override = hostname_override rescue Gitlab::UrlBlocker::BlockedUrlError => e |