From 967c412b94a41e1cf4a31402c4c47a152b1c6cd9 Mon Sep 17 00:00:00 2001 From: sashman Date: Wed, 7 Sep 2016 09:31:06 +0100 Subject: [PATCH] Negating HEX_UNSAFE_REGISTRY value #285 (#287) --- lib/hex/state.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/hex/state.ex b/lib/hex/state.ex index ea38af38f..98fe4bc9b 100644 --- a/lib/hex/state.ex +++ b/lib/hex/state.ex @@ -42,7 +42,7 @@ defmodule Hex.State do https_proxy: load_config(config, ["https_proxy", "HTTPS_PROXY"], :https_proxy), offline?: load_config(config, ["HEX_OFFLINE"], :offline) |> to_boolean |> default(false), check_cert?: load_config(config, ["HEX_UNSAFE_HTTPS"], :unsafe_https) |> to_boolean |> default(false) |> Kernel.not, - check_registry?: load_config(config, ["HEX_UNSAFE_REGISTRY"], :unsafe_registry) |> to_boolean |> default(true), + check_registry?: load_config(config, ["HEX_UNSAFE_REGISTRY"], :unsafe_registry) |> to_boolean |> default(false) |> Kernel.not, hexpm_pk: @hexpm_pk, registry_updated: false, httpc_profile: :hex,