1
0
Fork 0
mirror of https://github.com/processone/ejabberd synced 2025-10-06 03:50:15 +02:00

Make it possible to join extauth pools

This commit is contained in:
Marcel Waldvogel 2018-07-30 22:49:18 +02:00
parent efb4fd0d10
commit 9b48dc9cc3
2 changed files with 9 additions and 2 deletions

View file

@ -82,7 +82,12 @@ prog_name(Host) ->
-spec pool_name(binary()) -> atom().
pool_name(Host) ->
list_to_atom("extauth_pool_" ++ binary_to_list(Host)).
case ejabberd_config:get_option({extauth_pool_name, Host}) of
undefined ->
list_to_atom("extauth_pool_" ++ binary_to_list(Host));
Name ->
list_to_atom("extauth_pool_" ++ binary_to_list(Name))
end.
-spec worker_name(atom(), integer()) -> atom().
worker_name(Pool, N) ->