25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-28 16:34:13 +01:00

ejabberd_s2s_in: Fix indentation

This commit is contained in:
Holger Weiss 2018-10-15 23:03:53 +02:00
parent 914fae3d3e
commit 3d4f65812e

View File

@ -188,7 +188,7 @@ handle_auth_success(RServer, Mech, _AuthModule,
State0#{auth_domains => AuthDomains1}; State0#{auth_domains => AuthDomains1};
false -> false ->
State State
end, end,
ejabberd_hooks:run_fold(s2s_in_auth_result, ServerHost, State1, [true, RServer]). ejabberd_hooks:run_fold(s2s_in_auth_result, ServerHost, State1, [true, RServer]).
handle_auth_failure(RServer, Mech, Reason, handle_auth_failure(RServer, Mech, Reason,
@ -221,7 +221,7 @@ handle_authenticated_packet(Pkt0, #{ip := {IP, _}} = State) ->
case Pkt1 of case Pkt1 of
drop -> ok; drop -> ok;
_ -> ejabberd_router:route(Pkt1) _ -> ejabberd_router:route(Pkt1)
end, end,
State2; State2;
{error, Err} -> {error, Err} ->
send(State, Err) send(State, Err)
@ -249,9 +249,9 @@ init([State, Opts]) ->
(_) -> false (_) -> false
end, Opts), end, Opts),
TLSOpts2 = case proplists:get_bool(tls_compression, Opts) of TLSOpts2 = case proplists:get_bool(tls_compression, Opts) of
false -> [compression_none | TLSOpts1]; false -> [compression_none | TLSOpts1];
true -> TLSOpts1 true -> TLSOpts1
end, end,
Timeout = ejabberd_config:negotiation_timeout(), Timeout = ejabberd_config:negotiation_timeout(),
State1 = State#{tls_options => TLSOpts2, State1 = State#{tls_options => TLSOpts2,
auth_domains => sets:new(), auth_domains => sets:new(),