fix
This commit is contained in:
parent
7f431996c5
commit
d052dca152
@ -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