mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-22 16:20:52 +01:00
Log warnings for c2s/s2s certfile option
This commit is contained in:
parent
79a9a0ed29
commit
c72e0a6ca6
@ -998,8 +998,10 @@ opt_type(_) ->
|
|||||||
(atom()) -> [atom()].
|
(atom()) -> [atom()].
|
||||||
listen_opt_type(access) -> fun acl:access_rules_validator/1;
|
listen_opt_type(access) -> fun acl:access_rules_validator/1;
|
||||||
listen_opt_type(shaper) -> fun acl:shaper_rules_validator/1;
|
listen_opt_type(shaper) -> fun acl:shaper_rules_validator/1;
|
||||||
listen_opt_type(certfile) ->
|
listen_opt_type(certfile = Opt) ->
|
||||||
fun(S) ->
|
fun(S) ->
|
||||||
|
?WARNING_MSG("Listening option '~s' for ~s is deprecated, use "
|
||||||
|
"'certfiles' global option instead", [Opt, ?MODULE]),
|
||||||
ejabberd_pkix:add_certfile(S),
|
ejabberd_pkix:add_certfile(S),
|
||||||
iolist_to_binary(S)
|
iolist_to_binary(S)
|
||||||
end;
|
end;
|
||||||
|
@ -359,8 +359,10 @@ change_shaper(#{shaper := ShaperName, server_host := ServerHost} = State,
|
|||||||
(max_fsm_queue) -> fun((pos_integer()) -> pos_integer());
|
(max_fsm_queue) -> fun((pos_integer()) -> pos_integer());
|
||||||
(atom()) -> [atom()].
|
(atom()) -> [atom()].
|
||||||
listen_opt_type(shaper) -> fun acl:shaper_rules_validator/1;
|
listen_opt_type(shaper) -> fun acl:shaper_rules_validator/1;
|
||||||
listen_opt_type(certfile) ->
|
listen_opt_type(certfile = Opt) ->
|
||||||
fun(S) ->
|
fun(S) ->
|
||||||
|
?WARNING_MSG("Listening option '~s' for ~s is deprecated, use "
|
||||||
|
"'certfiles' global option instead", [Opt, ?MODULE]),
|
||||||
ejabberd_pkix:add_certfile(S),
|
ejabberd_pkix:add_certfile(S),
|
||||||
iolist_to_binary(S)
|
iolist_to_binary(S)
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user