# HG changeset patch # User Matthew Wild # Date 1507726563 -3600 # Node ID 226693a22fc9e914d07e743e910abb80bd48259c # Parent d42e9da671fdc91395b5892492d95072b672b47d mod_compression_unsafe: Fix logic bug in previous commit diff -r d42e9da671fd -r 226693a22fc9 mod_compression_unsafe/mod_compression_unsafe.lua --- a/mod_compression_unsafe/mod_compression_unsafe.lua Wed Oct 11 13:55:00 2017 +0100 +++ b/mod_compression_unsafe/mod_compression_unsafe.lua Wed Oct 11 13:56:03 2017 +0100 @@ -26,7 +26,7 @@ module:hook("stream-features", function(event) local origin, features = event.origin, event.features; - if not origin.compressed and origin.type == "c2s" or origin.type == "c2s_unbound" then + if not origin.compressed and (origin.type == "c2s" or origin.type == "c2s_unbound") then features:add_child(compression_stream_feature); end end);