aboutsummaryrefslogtreecommitdiff
path: root/src/extauth.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/extauth.erl')
-rw-r--r--src/extauth.erl7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/extauth.erl b/src/extauth.erl
index 7a71cfbc9..f77d3d2cc 100644
--- a/src/extauth.erl
+++ b/src/extauth.erl
@@ -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) ->