Software /
code /
prosody
Comparison
plugins/mod_c2s.lua @ 11618:8f0fe74ede94
mod_c2s: Update a comment to reflect Direct TLS
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 20 Jun 2021 18:14:18 +0200 |
parent | 11614:1ac8976f09a9 |
child | 11619:d629135450ec |
comparison
equal
deleted
inserted
replaced
11617:166f8e1d82b0 | 11618:8f0fe74ede94 |
---|---|
285 function listener.onconnect(conn) | 285 function listener.onconnect(conn) |
286 local session = sm_new_session(conn); | 286 local session = sm_new_session(conn); |
287 | 287 |
288 session.log("info", "Client connected"); | 288 session.log("info", "Client connected"); |
289 | 289 |
290 -- Client is using legacy SSL (otherwise mod_tls sets this flag) | 290 -- Client is using Direct TLS or legacy SSL (otherwise mod_tls sets this flag) |
291 if conn:ssl() then | 291 if conn:ssl() then |
292 session.secure = true; | 292 session.secure = true; |
293 session.encrypted = true; | 293 session.encrypted = true; |
294 | 294 |
295 -- Check if TLS compression is used | 295 -- Check if TLS compression is used |