This commit is contained in:
Alex S 2019-08-16 09:44:00 +03:00 committed by Ariadne Conill
parent f7fea15d55
commit a7c668c4d9

View File

@ -31,7 +31,10 @@ defmodule Pleroma.Gun.Connections do
opts = Enum.into(opts, %{}) opts = Enum.into(opts, %{})
uri = URI.parse(url) 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( GenServer.call(
name, name,