projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5bb843c
)
Respect proxy settings federation
author
jeff
<jeff@i2p.rocks>
Tue, 28 May 2019 06:49:53 +0000
(06:49 +0000)
committer
kaniini
<nenolod@gmail.com>
Tue, 28 May 2019 06:49:53 +0000
(06:49 +0000)
lib/pleroma/http/connection.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/http/connection.ex
b/lib/pleroma/http/connection.ex
index 558005c19260e96cee699783847c17c1980ea884..c216cdcb11af5875d47e602b25fa327d07f88614 100644
(file)
--- a/
lib/pleroma/http/connection.ex
+++ b/
lib/pleroma/http/connection.ex
@@
-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