Comparison

mod_compression_unsafe/mod_compression_unsafe.lua @ 2794:d42e9da671fd

mod_compression_unsafe: Offer compression to c2s_unbound sessions (fixes compat with 0.10, thanks Flow)
author Matthew Wild <mwild1@gmail.com>
date Wed, 11 Oct 2017 13:55:00 +0100
parent 2776:3092ae96c1f0
child 2795:226693a22fc9
comparison
equal deleted inserted replaced
2793:4b7e6c01aa1c 2794:d42e9da671fd
24 return; 24 return;
25 end 25 end
26 26
27 module:hook("stream-features", function(event) 27 module:hook("stream-features", function(event)
28 local origin, features = event.origin, event.features; 28 local origin, features = event.origin, event.features;
29 if not origin.compressed and origin.type == "c2s" then 29 if not origin.compressed and origin.type == "c2s" or origin.type == "c2s_unbound" then
30 features:add_child(compression_stream_feature); 30 features:add_child(compression_stream_feature);
31 end 31 end
32 end); 32 end);
33 33
34 module:hook("s2s-stream-features", function(event) 34 module:hook("s2s-stream-features", function(event)