aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_tls.lua
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/mod_tls.lua')
-rw-r--r--plugins/mod_tls.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/mod_tls.lua b/plugins/mod_tls.lua
index dfc1e338..47b92d73 100644
--- a/plugins/mod_tls.lua
+++ b/plugins/mod_tls.lua
@@ -49,8 +49,8 @@ module:hook("stream-features", function(event)
end
end);
module:hook("s2s-stream-features", function(event)
- local session, features = event.session, event.features;
- if session.to_host and session.type ~= "s2sin" and session.conn.starttls then
+ local origin, features = event.origin, event.features;
+ if origin.to_host and origin.type ~= "s2sin" and origin.conn.starttls then
features:add_child(s2s_feature);
end
end);