projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Only add local posts to index in activity_pub
[akkoma]
/
lib
/
pleroma
/
reverse_proxy
/
client
/
hackney.ex
diff --git
a/lib/pleroma/reverse_proxy/client/hackney.ex
b/lib/pleroma/reverse_proxy/client/hackney.ex
index e84118a90a101a5edfd03e8a60e3e847de8eaf2a..dba946308e81fb266113da2e2ff7fb47b862e37e 100644
(file)
--- a/
lib/pleroma/reverse_proxy/client/hackney.ex
+++ b/
lib/pleroma/reverse_proxy/client/hackney.ex
@@
-1,5
+1,5
@@
# Pleroma: A lightweight social networking server
# Pleroma: A lightweight social networking server
-# Copyright © 2017-202
0
Pleroma Authors <https://pleroma.social/>
+# Copyright © 2017-202
1
Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.ReverseProxy.Client.Hackney do
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.ReverseProxy.Client.Hackney do
@@
-7,6
+7,7
@@
defmodule Pleroma.ReverseProxy.Client.Hackney do
@impl true
def request(method, url, headers, body, opts \\ []) do
@impl true
def request(method, url, headers, body, opts \\ []) do
+ opts = Keyword.put(opts, :ssl_options, versions: [:"tlsv1.2", :"tlsv1.1", :tlsv1])
:hackney.request(method, url, headers, body, opts)
end
:hackney.request(method, url, headers, body, opts)
end