diff options
author | Matthew Wild <mwild1@gmail.com> | 2022-03-28 11:08:53 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2022-03-28 11:08:53 +0100 |
commit | 9d8fc066bdfcf38eb9f77b1c05a43bde3048e1ab (patch) | |
tree | d8920f73ae745ed20deac33641f50a0cf8bf63c6 /plugins/mod_turn_external.lua | |
parent | 8be7d895e2db92e4053f46435222e562ff20d5bd (diff) | |
parent | 4272c931ae0c2009e568f6e1ae16754d6158d4ef (diff) | |
download | prosody-9d8fc066bdfcf38eb9f77b1c05a43bde3048e1ab.tar.gz prosody-9d8fc066bdfcf38eb9f77b1c05a43bde3048e1ab.zip |
Merge 0.12->trunk
Diffstat (limited to 'plugins/mod_turn_external.lua')
-rw-r--r-- | plugins/mod_turn_external.lua | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/mod_turn_external.lua b/plugins/mod_turn_external.lua index fe8366be..ee50740c 100644 --- a/plugins/mod_turn_external.lua +++ b/plugins/mod_turn_external.lua @@ -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 |