Skip to content

Commit

Permalink
ROX-8160: Remove IPv4 parameter from curl in bootstrap.sh (#475)
Browse files Browse the repository at this point in the history
  • Loading branch information
connorgorman authored Oct 7, 2021
1 parent cdeae4c commit 4336c3e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion collector/container/scripts/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ function download_kernel_object() {

local filename_gz="${OBJECT_PATH}.gz"
local curl_opts=(
-sS -4 --retry 30 --retry-connrefused --retry-delay 1 --retry-max-time 60
-sS --retry 30 --retry-connrefused --retry-delay 1 --retry-max-time 60
--connect-timeout 2
-f -L -w "HTTP Status Code %{http_code}"
-o "${filename_gz}"
Expand Down
4 changes: 2 additions & 2 deletions collector/lib/GetKernelObject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ bool DownloadKernelObject(const std::string& hostname, const Json::Value& tls_co
return false;
}

downloader.IPResolve(FileDownloader::IPv4);
downloader.IPResolve(FileDownloader::ANY);
downloader.SetRetries(30, 1, 60);
downloader.SetVerboseMode(verbose);
downloader.OutputFile(compressed_module_path);
Expand All @@ -132,7 +132,7 @@ bool DownloadKernelObject(const std::string& hostname, const Json::Value& tls_co
}

downloader.ResetCURL();
downloader.IPResolve(FileDownloader::IPv4);
downloader.IPResolve(FileDownloader::ANY);
downloader.SetRetries(30, 1, 60);
downloader.SetVerboseMode(verbose);
downloader.OutputFile(compressed_module_path);
Expand Down

0 comments on commit 4336c3e

Please sign in to comment.