diff options
author | Kim Alvefur <zash@zash.se> | 2012-01-19 16:47:12 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2012-01-19 16:47:12 +0100 |
commit | c707eb0fa1ca277926b2c7cc58fad5faf5896f86 (patch) | |
tree | c774672bc2051132986ad23a28b1b75097aa19a4 | |
parent | 54d1d2ec6ee3ebb535f16930966edfc1128f2834 (diff) | |
download | prosody-c707eb0fa1ca277926b2c7cc58fad5faf5896f86.tar.gz prosody-c707eb0fa1ca277926b2c7cc58fad5faf5896f86.zip |
mod_compression: Change default compression level to 7
-rw-r--r-- | plugins/mod_compression.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_compression.lua b/plugins/mod_compression.lua index b5031d72..62c0fa2e 100644 --- a/plugins/mod_compression.lua +++ b/plugins/mod_compression.lua @@ -16,7 +16,7 @@ local xmlns_stream = "http://etherx.jabber.org/streams"; local compression_stream_feature = st.stanza("compression", {xmlns=xmlns_compression_feature}):tag("method"):text("zlib"):up(); local add_filter = require "util.filters".add_filter; -local compression_level = module:get_option_number("compression_level", 9); +local compression_level = module:get_option_number("compression_level", 7); if not compression_level or compression_level < 1 or compression_level > 9 then module:log("warn", "Invalid compression level in config: %s", tostring(compression_level)); |