25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-14 15:59:04 +01:00

Disable TLS compression for s2s by default

TLS compression is not recommended, and it's already disabled by default
for c2s connections and for ejabberd_http.
This commit is contained in:
Holger Weiss 2016-04-11 22:50:11 +02:00
parent 8c8a6869be
commit 15d184a909
2 changed files with 2 additions and 2 deletions

View File

@ -325,7 +325,7 @@ wait_for_feature_request({xmlstreamelement, El},
{s2s_tls_compression, StateData#state.server},
fun(true) -> true;
(false) -> false
end, true) of
end, false) of
true -> lists:delete(compression_none, TLSOpts1);
false -> [compression_none | TLSOpts1]
end,

View File

@ -192,7 +192,7 @@ init([From, Server, Type]) ->
{s2s_tls_compression, From},
fun(true) -> true;
(false) -> false
end, true) of
end, false) of
false -> [compression_none | TLSOpts4];
true -> TLSOpts4
end,