diff options
author | Alex S <alex.strizhakov@gmail.com> | 2019-08-16 09:44:00 +0300 |
---|---|---|
committer | Alex S <alex.strizhakov@gmail.com> | 2019-08-20 12:41:45 +0300 |
commit | d052dca152b3f1cbd66873af6f0399a3d97debcc (patch) | |
tree | d891d600ada10cf6f6f735784a0fc6332d3be99c /lib | |
parent | 7f431996c5e2ad64b4641385e2358636aa37e92e (diff) | |
download | pleroma-d052dca152b3f1cbd66873af6f0399a3d97debcc.tar.gz |
fix
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pleroma/gun/connections.ex | 5 |
1 files changed, 4 insertions, 1 deletions
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, |