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.
This commit is contained in:
parent
9cd47d7085
commit
6eb2f07274
|
@ -124,13 +124,13 @@ prepare_turn_opts(Opts, _UseTurn = true) ->
|
||||||
Realm = case proplists:get_value(auth_realm, Opts) of
|
Realm = case proplists:get_value(auth_realm, Opts) of
|
||||||
undefined when AuthType == user ->
|
undefined when AuthType == user ->
|
||||||
if NumberOfMyHosts > 1 ->
|
if NumberOfMyHosts > 1 ->
|
||||||
?WARNING_MSG("You have several virtual "
|
?INFO_MSG("You have several virtual hosts "
|
||||||
"hosts configured, but option "
|
"configured, but option 'auth_realm' is "
|
||||||
"'auth_realm' is undefined and "
|
"undefined and 'auth_type' is set to "
|
||||||
"'auth_type' is set to 'user', "
|
"'user', so the TURN relay might not be "
|
||||||
"most likely the TURN relay won't "
|
"working properly. Using ~ts as a "
|
||||||
"be working properly. Using ~ts as "
|
"fallback",
|
||||||
"a fallback", [ejabberd_config:get_myname()]);
|
[ejabberd_config:get_myname()]);
|
||||||
true ->
|
true ->
|
||||||
ok
|
ok
|
||||||
end,
|
end,
|
||||||
|
|
Loading…
Reference in New Issue