diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2024-01-24 15:06:49 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2024-01-24 15:06:49 +0300 |
commit | af5193aa3cc159fd7d08be988bd00f1921077117 (patch) | |
tree | 664d9936ab99208c49b8721877be87b7e420d5bd /spec/support/helpers/stub_requests.rb | |
parent | 4dcdd5bebb55bd5522ec180070d4d265e00943b5 (diff) |
Diffstat (limited to 'spec/support/helpers/stub_requests.rb')
-rw-r--r-- | spec/support/helpers/stub_requests.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/support/helpers/stub_requests.rb b/spec/support/helpers/stub_requests.rb index a3810323fee..f9fe12fbfbb 100644 --- a/spec/support/helpers/stub_requests.rb +++ b/spec/support/helpers/stub_requests.rb @@ -8,7 +8,7 @@ module StubRequests # # It expects the final request to go to the `ip_address` instead the given url. # That's primarily a DNS rebind attack prevention of Gitlab::HTTP - # (see: Gitlab::UrlBlocker). + # (see: Gitlab::HTTP_V2::UrlBlocker). # def stub_full_request(url, ip_address: IP_ADDRESS_STUB, port: 80, method: :get) stub_dns(url, ip_address: ip_address, port: port) @@ -22,7 +22,7 @@ module StubRequests socket = Socket.sockaddr_in(port, ip_address) addr = Addrinfo.new(socket) - # See Gitlab::UrlBlocker + # See Gitlab::HTTP_V2::UrlBlocker allow(Addrinfo).to receive(:getaddrinfo) .with(url.hostname, url.port, nil, :STREAM) .and_return([addr]) @@ -34,7 +34,7 @@ module StubRequests socket = Socket.sockaddr_in(port, ip_address) addr = Addrinfo.new(socket) - # See Gitlab::UrlBlocker + # See Gitlab::HTTP_V2::UrlBlocker allow(Addrinfo).to receive(:getaddrinfo).and_call_original allow(Addrinfo).to receive(:getaddrinfo) .with(url.hostname, anything, nil, :STREAM) |