mirror of
https://github.com/bjc/prosody.git
synced 2025-04-01 20:27:39 +03:00
mod_turn_external: Update status and friendlier handling of missing secret option (fixes #1727)
This commit is contained in:
parent
c50c315705
commit
1426d52e39
1 changed files with 4 additions and 1 deletions
|
@ -8,7 +8,10 @@ local ttl = module:get_option_number("turn_external_ttl", 86400);
|
|||
local tcp = module:get_option_boolean("turn_external_tcp", false);
|
||||
local tls_port = module:get_option_number("turn_external_tls_port");
|
||||
|
||||
if not secret then error("mod_" .. module.name .. " requires that 'turn_external_secret' be set") end
|
||||
if not secret then
|
||||
module:log_status("error", "Failed to initialize: the 'turn_external_secret' option is not set in your configuration");
|
||||
return;
|
||||
end
|
||||
|
||||
local services = set.new({ "stun-udp"; "turn-udp" });
|
||||
if tcp then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue