equal
deleted
inserted
replaced
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 |