This commit is contained in:
Alex S 2019-08-16 09:44:00 +03:00
parent 7f431996c5
commit d052dca152

View File

@ -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,