From ccf36e2ae2c55bca0bd2cbd61d88e4078da70d03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nuno=20Mo=C3=A7o?= Date: Sun, 25 Sep 2022 04:17:59 +0100 Subject: [PATCH] Remove repeated proxy code --- lib/mix/tasks/heroicons/update.ex | 6 ------ 1 file changed, 6 deletions(-) diff --git a/lib/mix/tasks/heroicons/update.ex b/lib/mix/tasks/heroicons/update.ex index 6c9107e..1662cf9 100644 --- a/lib/mix/tasks/heroicons/update.ex +++ b/lib/mix/tasks/heroicons/update.ex @@ -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()