comparison plugins/mod_turn_external.lua @ 14100:7fd6feb86dbe 13.0

mod_turn_external: hand out credentials for type == turns too Fixes 12283:b5686debb497
author Mike Yuan <me@yhndnzj.com>
date Thu, 20 Nov 2025 10:04:06 +0100
parents 50324f66ca2a
children
comparison
equal deleted inserted replaced
14096:48ea7a15957e 14100:7fd6feb86dbe
31 type = type; 31 type = type;
32 transport = transport; 32 transport = transport;
33 host = host; 33 host = host;
34 port = type == "turns" and tls_port or port; 34 port = type == "turns" and tls_port or port;
35 35
36 username = type == "turn" and user or nil; 36 username = (type == "turn" or type == "turns") and user or nil;
37 secret = type == "turn" and secret or nil; 37 secret = (type == "turn" or type == "turns") and secret or nil;
38 ttl = type == "turn" and ttl or nil; 38 ttl = (type == "turn" or type == "turns") and ttl or nil;
39 }) 39 })
40 end 40 end
41 end 41 end
42 end 42 end