diff options
author | Henning L <henning.loehr@gmail.com> | 2018-04-13 04:51:50 -0400 |
---|---|---|
committer | Eric Meadows-Jönsson <eric.meadows.jonsson@gmail.com> | 2018-04-13 10:51:50 +0200 |
commit | 60acb96fcec7b44fa28fbbccfb6dfbb98f0e02c3 (patch) | |
tree | cb6b7fabe05e97cfea5f6808d3ecd17d395d0eea | |
parent | f27e4cc950b1eadad912c0c1882e029ec82cdabf (diff) | |
download | elixir-60acb96fcec7b44fa28fbbccfb6dfbb98f0e02c3.tar.gz |
Configure httpc to use ipv6 with auto fallback to ipv4 (#7548)
-rw-r--r-- | lib/mix/lib/mix/utils.ex | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/mix/lib/mix/utils.ex b/lib/mix/lib/mix/utils.ex index 11c9f4a4a..8b23184a5 100644 --- a/lib/mix/lib/mix/utils.ex +++ b/lib/mix/lib/mix/utils.ex @@ -574,6 +574,8 @@ defmodule Mix.Utils do # If a proxy environment variable was supplied add a proxy to httpc. http_options = [relaxed: true] ++ proxy_config(path) + :httpc.set_option(:ipfamily, :inet6fb4, :mix) + case :httpc.request(:get, request, http_options, [body_format: :binary], :mix) do {:ok, {{_, status, _}, _, body}} when status in 200..299 -> {:ok, body} |