tls versions for gun

This commit is contained in:
Alex S 2019-08-16 20:04:13 +03:00
parent 5e309605d2
commit 6e1408d05a
1 changed files with 1 additions and 0 deletions

View File

@ -90,6 +90,7 @@ defmodule Pleroma.HTTP do
tls_opts =
Keyword.get(options, :tls_opts, [])
|> Keyword.put(:server_name_indication, host)
|> Keyword.put(:versions, ['tlsv1.2', 'tlsv1.1', 'tlsv1'])
Keyword.put(options, :tls_opts, tls_opts) ++ [ssl: [server_name_indication: host]]