aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHolger Weiss <holger@zedat.fu-berlin.de>2020-04-27 22:28:59 +0200
committerHolger Weiss <holger@zedat.fu-berlin.de>2020-04-28 10:34:43 +0200
commit6eb2f0727447d8e7a36f11bccbf19be819b7bcfd (patch)
tree10696ae27f899ed4bf7ef6d9aa3c74730bf5c25c
parentAdd tests for mod_stun_disco (diff)
ejabberd_stun: Tone down 'auth_realm' warning
These days, STUN/TURN authentication can be performed with ephemeral credentials, where the REALM is irrelevant. Therefore, just log an [info] message rather than a [warning] in the case where no authentication REALM is configured but multiple virtual domains exist.
-rw-r--r--src/ejabberd_stun.erl14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/ejabberd_stun.erl b/src/ejabberd_stun.erl
index 6363355cf..92552cc8a 100644
--- a/src/ejabberd_stun.erl
+++ b/src/ejabberd_stun.erl
@@ -124,13 +124,13 @@ prepare_turn_opts(Opts, _UseTurn = true) ->
Realm = case proplists:get_value(auth_realm, Opts) of
undefined when AuthType == user ->
if NumberOfMyHosts > 1 ->
- ?WARNING_MSG("You have several virtual "
- "hosts configured, but option "
- "'auth_realm' is undefined and "
- "'auth_type' is set to 'user', "
- "most likely the TURN relay won't "
- "be working properly. Using ~ts as "
- "a fallback", [ejabberd_config:get_myname()]);
+ ?INFO_MSG("You have several virtual hosts "
+ "configured, but option 'auth_realm' is "
+ "undefined and 'auth_type' is set to "
+ "'user', so the TURN relay might not be "
+ "working properly. Using ~ts as a "
+ "fallback",
+ [ejabberd_config:get_myname()]);
true ->
ok
end,