Fix supported TLS versions as TLS 1.3 support seems buggy.
This commit is contained in:
parent
dd5865535e
commit
b57913b13a
2 changed files with 15 additions and 1 deletions
|
|
@ -30,6 +30,7 @@ defmodule Pleroma.HTTP do
|
|||
options =
|
||||
process_request_options(options)
|
||||
|> process_sni_options(url)
|
||||
|> process_adapter_options()
|
||||
|
||||
params = Keyword.get(options, :params, [])
|
||||
|
||||
|
|
@ -56,6 +57,12 @@ defmodule Pleroma.HTTP do
|
|||
end
|
||||
end
|
||||
|
||||
def process_adapter_options(options) do
|
||||
adapter_options = Pleroma.Config.get([:http, :adapter], [])
|
||||
|
||||
options ++ [adapter: adapter_options]
|
||||
end
|
||||
|
||||
def process_request_options(options) do
|
||||
config = Application.get_env(:pleroma, :http, [])
|
||||
proxy = Keyword.get(config, :proxy_url, nil)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue