Markups to online mirror auditing
This commit is contained in:
parent
7eec6a3a25
commit
ea440ca328
@ -1491,9 +1491,9 @@ class ResourceAuditor
|
|||||||
return unless @online
|
return unless @online
|
||||||
urls.each do |url|
|
urls.each do |url|
|
||||||
begin
|
begin
|
||||||
nostdout { curl "--connect-timeout", "15", "-o", "/dev/null", "-r", "0-0", url }
|
nostdout { curl "--connect-timeout", "15", "--output", "/dev/null", "--range", "0-0", url }
|
||||||
rescue ErrorDuringExecution
|
rescue ErrorDuringExecution
|
||||||
problem "The mirror #{u} is not reachable (curl exit code #{$?.exitstatus})"
|
problem "The mirror #{url} is not reachable (curl exit code #{$?.exitstatus})"
|
||||||
end
|
end
|
||||||
check_insecure_mirror(url) if url.start_with? "http:"
|
check_insecure_mirror(url) if url.start_with? "http:"
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user