Mercurial > prosody-modules
comparison mod_onions/mod_onions.lua @ 1467:f10a3a5ba28f
mod_onions: Set the stream version to 1.0 on onionized streams, so TLS is offered.
author | Thijs Alkemade <me@thijsalkema.de> |
---|---|
date | Fri, 04 Jul 2014 14:16:21 +0200 |
parents | 7dbde05b48a9 |
children | cf32265eb4c7 |
comparison
equal
deleted
inserted
replaced
1466:9da03e45c6be | 1467:f10a3a5ba28f |
---|---|
81 session.socks5_buffer = nil; | 81 session.socks5_buffer = nil; |
82 | 82 |
83 local w, log = conn.send, session.log; | 83 local w, log = conn.send, session.log; |
84 | 84 |
85 local filter = initialize_filters(session); | 85 local filter = initialize_filters(session); |
86 | |
87 session.version = 1; | |
86 | 88 |
87 session.sends2s = function (t) | 89 session.sends2s = function (t) |
88 log("debug", "sending (s2s over socks5): %s", (t.top_tag and t:top_tag()) or t:match("^[^>]*>?")); | 90 log("debug", "sending (s2s over socks5): %s", (t.top_tag and t:top_tag()) or t:match("^[^>]*>?")); |
89 if t.name then | 91 if t.name then |
90 t = filter("stanzas/out", t); | 92 t = filter("stanzas/out", t); |