mod_s2s: Remove duplicate method call (thanks luacheck)
authorKim Alvefur <zash@zash.se>
Mon, 21 Jun 2021 13:45:44 +0200
changeset 11628 1b7669c49459
parent 11627 cce5191a65a7
child 11629 04abe65b8067
mod_s2s: Remove duplicate method call (thanks luacheck) Should have been removed in the previous commit.
plugins/mod_s2s.lua
--- a/plugins/mod_s2s.lua	Mon Jun 21 13:43:40 2021 +0200
+++ b/plugins/mod_s2s.lua	Mon Jun 21 13:45:44 2021 +0200
@@ -387,7 +387,6 @@
 		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)