fix for ReverseProxy
authorAlexander Strizhakov <alex.strizhakov@gmail.com>
Fri, 4 Sep 2020 11:45:30 +0000 (14:45 +0300)
committerAlexander Strizhakov <alex.strizhakov@gmail.com>
Fri, 4 Sep 2020 11:45:30 +0000 (14:45 +0300)
lib/pleroma/reverse_proxy/client/hackney.ex

index e84118a90a101a5edfd03e8a60e3e847de8eaf2a..ad988fac3db2b97bc5109e09fc6eaeeafba9af63 100644 (file)
@@ -7,6 +7,7 @@ defmodule Pleroma.ReverseProxy.Client.Hackney do
 
   @impl true
   def request(method, url, headers, body, opts \\ []) do
+    opts = Keyword.put(opts, :ssl_options, versions: [:"tlsv1.2", :"tlsv1.1", :tlsv1])
     :hackney.request(method, url, headers, body, opts)
   end