fix
This commit is contained in:
parent
f7fea15d55
commit
a7c668c4d9
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user