mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-24 17:29:28 +01:00
mod_stun_disco: Log discovered services on startup
If the 'offer_local_services' option isn't set to 'false', log an [info] message for each auto-discovered ejabberd_stun listener on startup (and on configuration reload).
This commit is contained in:
parent
e6a3b1fa68
commit
6d13120e69
@ -609,16 +609,16 @@ parse_listener({{Port, _Addr, Transport}, ?STUN_MODULE, Opts}) ->
|
||||
type = stun},
|
||||
case Opts of
|
||||
#{use_turn := true} ->
|
||||
?DEBUG("Found STUN/TURN listener: ~s:~B (~s)",
|
||||
[misc:ip_to_list(Addr), Port, Transport]),
|
||||
?INFO_MSG("Going to offer STUN/TURN listener: ~s:~B (~s)",
|
||||
[misc:ip_to_list(Addr), Port, Transport]),
|
||||
[StunService, #service{host = Host,
|
||||
port = Port,
|
||||
transport = Transport,
|
||||
restricted = is_restricted(Opts),
|
||||
type = turn}];
|
||||
#{use_turn := false} ->
|
||||
?DEBUG("Found STUN listener: ~s:~B (~s)",
|
||||
[misc:ip_to_list(Addr), Port, Transport]),
|
||||
?INFO_MSG("Going to offer STUN listener: ~s:~B (~s)",
|
||||
[misc:ip_to_list(Addr), Port, Transport]),
|
||||
[StunService]
|
||||
end
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user