fix(mailer): drop the TLS 1.2 pin
The pin worked around a TLS 1.3 problem with Hackney on OTP 23 (swoosh/swoosh#478). Pleroma no longer supports OTP 23.
This commit is contained in:
parent
f4ff7cb1ea
commit
92a112cf15
4 changed files with 5 additions and 10 deletions
|
|
@ -36,11 +36,10 @@ defmodule Pleroma.Emails.Mailer do
|
|||
def deliver(email, config \\ [])
|
||||
|
||||
def deliver(email, config) do
|
||||
# temporary hackney fix until hackney max_connections bug is fixed
|
||||
# https://git.pleroma.social/pleroma/pleroma/-/issues/2101
|
||||
# Swoosh HTTP adapters use Hackney, which otherwise trusts its certifi bundle
|
||||
email =
|
||||
Swoosh.Email.put_private(email, :hackney_options,
|
||||
ssl_options: Pleroma.HTTP.TLS.ssl_options(versions: [:"tlsv1.2"])
|
||||
ssl_options: Pleroma.HTTP.TLS.ssl_options()
|
||||
)
|
||||
|
||||
case enabled?() do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue