Skip to content

Commit 049f80c

Browse files
authored
Merge pull request #2978 from LEdoian/ipv6-support
IPv6 support for getting Hex packages
2 parents 6068226 + dabb3e5 commit 049f80c

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

THANKS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,3 +147,4 @@ Guilherme Andrade
147147
Manas Chaudhari
148148
Luís Rascão
149149
Marko Minđek
150+
LEdoian

apps/rebar/src/rebar_utils.erl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -976,6 +976,7 @@ get_http_vars(Scheme) ->
976976
-compile({nowarn_deprecated_function, [{http_uri, decode, 1}]}).
977977

978978
set_httpc_options() ->
979+
httpc:set_options([{ipfamily, inet6fb4}], rebar),
979980
set_httpc_options(https_proxy, get_http_vars(https_proxy)),
980981
set_httpc_options(proxy, get_http_vars(http_proxy)).
981982

bootstrap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ get_http_vars(Scheme) ->
119119
proplists:get_value(Scheme, get_rebar_config(), OS).
120120

121121
set_httpc_options() ->
122+
httpc:set_options([{ipfamily, inet6fb4}], rebar),
122123
set_httpc_options(https_proxy, get_http_vars(https_proxy)),
123124
set_httpc_options(proxy, get_http_vars(http_proxy)).
124125

0 commit comments

Comments
 (0)