Mercurial > prosody-modules
comparison mod_turn_external/mod_turn_external.lua @ 4895:2542fd80cd15
mod_turn_external: Fix type of config option (thanks mirux)
There was a separate boolean option to enable TLS before, but it was
merged with the port number option and it seems the typed API interface
got confused.
Backport of trunk rev aa7a8aa64d3f
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 15 Feb 2022 21:51:52 +0100 |
parents | bfa2cca2bdd5 |
children |
comparison
equal
deleted
inserted
replaced
4894:bfa2cca2bdd5 | 4895:2542fd80cd15 |
---|---|
4 local host = module:get_option_string("turn_external_host", module.host); | 4 local host = module:get_option_string("turn_external_host", module.host); |
5 local user = module:get_option_string("turn_external_user"); | 5 local user = module:get_option_string("turn_external_user"); |
6 local port = module:get_option_number("turn_external_port", 3478); | 6 local port = module:get_option_number("turn_external_port", 3478); |
7 local ttl = module:get_option_number("turn_external_ttl", 86400); | 7 local ttl = module:get_option_number("turn_external_ttl", 86400); |
8 local tcp = module:get_option_boolean("turn_external_tcp", false); | 8 local tcp = module:get_option_boolean("turn_external_tcp", false); |
9 local tls_port = module:get_option_boolean("turn_external_tls_port"); | 9 local tls_port = module:get_option_number("turn_external_tls_port"); |
10 | 10 |
11 if not secret then error("mod_" .. module.name .. " requires that 'turn_external_secret' be set") end | 11 if not secret then error("mod_" .. module.name .. " requires that 'turn_external_secret' be set") end |
12 | 12 |
13 local services = set.new({ "stun-udp"; "turn-udp" }); | 13 local services = set.new({ "stun-udp"; "turn-udp" }); |
14 if tcp then | 14 if tcp then |