Skip to content

Commit 1ad7872

Browse files
authored
Update lib/mix/lib/mix/utils.ex
1 parent ef582cb commit 1ad7872

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/mix/lib/mix/utils.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -765,8 +765,8 @@ defmodule Mix.Utils do
765765
:httpc.set_options([ipfamily: fallback(inet)], :mix)
766766
request |> httpc_request(http_options) |> httpc_response()
767767

768-
{:error, {:failed_connect, [{:to_address, _}, {inet, _, {:tls_alert, _}}]}}
769-
when inet in [:inet, :inet6] ->
768+
{:error, {:failed_connect, [{:to_address, _}, {inet, _, reason}]}}
769+
when inet in [:inet, :inet6] and elem(reason, 0) == :tls_alert ->
770770
http_options = put_in(http_options, [:ssl, :middlebox_comp_mode], false)
771771
request |> httpc_request(http_options) |> httpc_response()
772772

0 commit comments

Comments
 (0)