aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_compression.lua
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/mod_compression.lua')
-rw-r--r--plugins/mod_compression.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/mod_compression.lua b/plugins/mod_compression.lua
index 725c0b63..4b1fa79f 100644
--- a/plugins/mod_compression.lua
+++ b/plugins/mod_compression.lua
@@ -34,9 +34,9 @@ module:hook("stream-features", function(event)
end);
module:hook("s2s-stream-features", function(event)
- local session, features = event.session, event.features;
+ local origin, features = event.origin, event.features;
-- FIXME only advertise compression support when TLS layer has no compression enabled
- if not session.compressed then
+ if not origin.compressed then
features:add_child(compression_stream_feature);
end
end);