Software /
code /
prosody
Comparison
plugins/mod_s2s.lua @ 11624:1b7669c49459
mod_s2s: Remove duplicate method call (thanks luacheck)
Should have been removed in the previous commit.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 21 Jun 2021 13:45:44 +0200 |
parent | 11623:cce5191a65a7 |
child | 11668:f18fbae6d9fe |
comparison
equal
deleted
inserted
replaced
11623:cce5191a65a7 | 11624:1b7669c49459 |
---|---|
385 session.encrypted = true; | 385 session.encrypted = true; |
386 | 386 |
387 local sock = session.conn:socket(); | 387 local sock = session.conn:socket(); |
388 local info = sock.info and sock:info(); | 388 local info = sock.info and sock:info(); |
389 if type(info) == "table" then | 389 if type(info) == "table" then |
390 local info = sock:info(); | |
391 (session.log or log)("info", "Stream encrypted (%s with %s)", info.protocol, info.cipher); | 390 (session.log or log)("info", "Stream encrypted (%s with %s)", info.protocol, info.cipher); |
392 session.compressed = info.compression; | 391 session.compressed = info.compression; |
393 m_tls_params:with_labels(info.protocol, info.cipher):add(1) | 392 m_tls_params:with_labels(info.protocol, info.cipher):add(1) |
394 else | 393 else |
395 (session.log or log)("info", "Stream encrypted"); | 394 (session.log or log)("info", "Stream encrypted"); |