Comparison

plugins/mod_turn_external.lua @ 12290:aa7a8aa64d3f

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.
author Kim Alvefur <zash@zash.se>
date Tue, 15 Feb 2022 21:51:52 +0100 (2022-02-15)
parent 12283:b5686debb497
child 12437:9f5d0b77e3df
comparison
equal deleted inserted replaced
12289:3a655adf1d0d 12290:aa7a8aa64d3f
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