Respect proxy settings federation
authorjeff <jeff@i2p.rocks>
Tue, 28 May 2019 06:49:53 +0000 (06:49 +0000)
committerkaniini <nenolod@gmail.com>
Tue, 28 May 2019 06:49:53 +0000 (06:49 +0000)
lib/pleroma/http/connection.ex

index 558005c19260e96cee699783847c17c1980ea884..c216cdcb11af5875d47e602b25fa327d07f88614 100644 (file)
@@ -32,9 +32,11 @@ defmodule Pleroma.HTTP.Connection do
   defp hackney_options(opts) do
     options = Keyword.get(opts, :adapter, [])
     adapter_options = Pleroma.Config.get([:http, :adapter], [])
+    proxy_url = Pleroma.Config.get([:http, :proxy_url], nil)
 
     @hackney_options
     |> Keyword.merge(adapter_options)
     |> Keyword.merge(options)
+    |> Keyword.merge(proxy: proxy_url)
   end
 end