changeset 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 48ea7a15957e
children 3e6bb6ffbd43
files plugins/mod_turn_external.lua
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_turn_external.lua	Sun Mar 01 22:50:50 2026 +0000
+++ b/plugins/mod_turn_external.lua	Thu Nov 20 10:04:06 2025 +0100
@@ -33,9 +33,9 @@
 				host = host;
 				port = type == "turns" and tls_port or port;
 
-				username = type == "turn" and user or nil;
-				secret = type == "turn" and secret or nil;
-				ttl = type == "turn" and ttl or nil;
+				username = (type == "turn" or type == "turns") and user or nil;
+				secret = (type == "turn" or type == "turns") and secret or nil;
+				ttl = (type == "turn" or type == "turns") and ttl or nil;
 			})
 		end
 	end