diff --git a/lib/pleroma/gun/connections.ex b/lib/pleroma/gun/connections.ex index e06cad276..a3f1b0351 100644 --- a/lib/pleroma/gun/connections.ex +++ b/lib/pleroma/gun/connections.ex @@ -31,7 +31,10 @@ defmodule Pleroma.Gun.Connections do opts = Enum.into(opts, %{}) uri = URI.parse(url) - opts = if uri.scheme == "https", do: Map.put(opts, :transport, :tls), else: opts + opts = + if uri.scheme == "https" and uri.port != 443, + do: Map.put(opts, :transport, :tls), + else: opts GenServer.call( name,