Software /
code /
prosody
Comparison
plugins/mod_c2s.lua @ 10226:77f900bbbf25
Remove COMPAT with temporary luasec fork
The changes in the temporary fork were merged into mainline luasec ca
2013 and included in the 0.5 release in 2014.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 25 Aug 2019 23:12:55 +0200 |
parent | 10111:0f335815244f |
child | 10379:b917602eac04 |
comparison
equal
deleted
inserted
replaced
10225:9bdd9b6bf362 | 10226:77f900bbbf25 |
---|---|
95 local info = sock:info(); | 95 local info = sock:info(); |
96 (session.log or log)("info", "Stream encrypted (%s with %s)", info.protocol, info.cipher); | 96 (session.log or log)("info", "Stream encrypted (%s with %s)", info.protocol, info.cipher); |
97 session.compressed = info.compression; | 97 session.compressed = info.compression; |
98 else | 98 else |
99 (session.log or log)("info", "Stream encrypted"); | 99 (session.log or log)("info", "Stream encrypted"); |
100 session.compressed = sock.compression and sock:compression(); --COMPAT mw/luasec-hg | |
101 end | 100 end |
102 end | 101 end |
103 | 102 |
104 local features = st.stanza("stream:features"); | 103 local features = st.stanza("stream:features"); |
105 hosts[session.host].events.fire_event("stream-features", { origin = session, features = features }); | 104 hosts[session.host].events.fire_event("stream-features", { origin = session, features = features }); |
255 | 254 |
256 -- Check if TLS compression is used | 255 -- Check if TLS compression is used |
257 local sock = conn:socket(); | 256 local sock = conn:socket(); |
258 if sock.info then | 257 if sock.info then |
259 session.compressed = sock:info"compression"; | 258 session.compressed = sock:info"compression"; |
260 elseif sock.compression then | |
261 session.compressed = sock:compression(); --COMPAT mw/luasec-hg | |
262 end | 259 end |
263 end | 260 end |
264 | 261 |
265 if opt_keepalives then | 262 if opt_keepalives then |
266 conn:setoption("keepalive", opt_keepalives); | 263 conn:setoption("keepalive", opt_keepalives); |