From fdf1ccbe3f54cd5fb409854247f01635f98287a7 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 24 Mar 2021 13:57:00 -0400 Subject: [PATCH] move comment --- Annex/Url.hs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Annex/Url.hs b/Annex/Url.hs index fd0fc9f39b..863234544f 100644 --- a/Annex/Url.hs +++ b/Annex/Url.hs @@ -82,9 +82,6 @@ getUrlOptions = Annex.getState Annex.urloptions >>= \case checkallowedaddr = words . annexAllowedIPAddresses <$> Annex.getGitConfig >>= \case ["all"] -> do - -- Only allow curl when all are allowed, - -- as its interface does not allow preventing - -- it from accessing specific IP addresses. curlopts <- map Param . annexWebOptions <$> Annex.getGitConfig let urldownloader = if null curlopts then U.DownloadWithConduit $ @@ -120,6 +117,8 @@ getUrlOptions = Annex.getState Annex.urloptions >>= \case "http proxy settings not used due to annex.security.allowed-ip-addresses configuration" manager <- liftIO $ U.newManager $ avoidtimeout settings + -- Curl is not used, as its interface does not allow + -- preventing it from accessing specific IP addresses. let urldownloader = U.DownloadWithConduit $ U.DownloadWithCurlRestricted r return (urldownloader, manager)