Remove repeated proxy code

This commit is contained in:
Nuno Moço
2022-09-25 04:17:59 +01:00
committed by GitHub
parent 0929dc23ef
commit ccf36e2ae2

View File

@ -71,12 +71,6 @@ defmodule Mix.Tasks.Heroicons.Update do
:httpc.set_options([{:proxy, {{String.to_charlist(host), port}, []}}])
end
if proxy = System.get_env("HTTPS_PROXY") || System.get_env("https_proxy") do
Logger.debug("Using HTTPS_PROXY: #{proxy}")
%{host: host, port: port} = URI.parse(proxy)
:httpc.set_options([{:https_proxy, {{String.to_charlist(host), port}, []}}])
end
# https://erlef.github.io/security-wg/secure_coding_and_deployment_hardening/inets
cacertfile = CAStore.file_path() |> String.to_charlist()