aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2021-06-21 13:45:44 +0200
committerKim Alvefur <zash@zash.se>2021-06-21 13:45:44 +0200
commitab7abe3f8c6d5183ab7aa2cf9a5af37754282952 (patch)
treeb30de278f1ff71a5a95a61031ced4c604ee4e274 /plugins
parentd07638c8d28ecfbb04bc63058901e2aa86652ab5 (diff)
downloadprosody-ab7abe3f8c6d5183ab7aa2cf9a5af37754282952.tar.gz
prosody-ab7abe3f8c6d5183ab7aa2cf9a5af37754282952.zip
mod_s2s: Remove duplicate method call (thanks luacheck)
Should have been removed in the previous commit.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_s2s.lua1
1 files changed, 0 insertions, 1 deletions
diff --git a/plugins/mod_s2s.lua b/plugins/mod_s2s.lua
index 08b9eedb..143a9cd6 100644
--- a/plugins/mod_s2s.lua
+++ b/plugins/mod_s2s.lua
@@ -387,7 +387,6 @@ function stream_callbacks._streamopened(session, attr)
local sock = session.conn:socket();
local info = sock.info and sock:info();
if type(info) == "table" then
- local info = sock:info();
(session.log or log)("info", "Stream encrypted (%s with %s)", info.protocol, info.cipher);
session.compressed = info.compression;
m_tls_params:with_labels(info.protocol, info.cipher):add(1)