Diff

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
parent 1343:7dbde05b48a9
child 1468:cf32265eb4c7
line wrap: on
line diff
--- a/mod_onions/mod_onions.lua	Wed Jul 02 22:37:16 2014 -0500
+++ b/mod_onions/mod_onions.lua	Fri Jul 04 14:16:21 2014 +0200
@@ -84,6 +84,8 @@
 
 		local filter = initialize_filters(session);
 
+		session.version = 1;
+
 		session.sends2s = function (t)
 			log("debug", "sending (s2s over socks5): %s", (t.top_tag and t:top_tag()) or t:match("^[^>]*>?"));
 			if t.name then