aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/dev-cmd/audit.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/Library/Homebrew/dev-cmd/audit.rb b/Library/Homebrew/dev-cmd/audit.rb
index 5ed363f7c..3a4429c86 100644
--- a/Library/Homebrew/dev-cmd/audit.rb
+++ b/Library/Homebrew/dev-cmd/audit.rb
@@ -1490,6 +1490,11 @@ class ResourceAuditor
return unless @online
urls.each do |url|
+ begin
+ nostdout { curl "--connect-timeout", "15", "-o", "/dev/null", "-r", "0-0", url }
+ rescue ErrorDuringExecution
+ problem "The mirror #{u} is not reachable (curl exit code #{$?.exitstatus})"
+ end
check_insecure_mirror(url) if url.start_with? "http:"
end
end