diff plugins/mod_turn_external.lua @ 14102:a124e80d3498

Merge 13.0->trunk
author Kim Alvefur <zash@zash.se>
date Wed, 11 Mar 2026 16:59:10 +0100
parents 7fd6feb86dbe
children
line wrap: on
line diff
--- a/plugins/mod_turn_external.lua	Sun Mar 08 19:30:54 2026 +0300
+++ b/plugins/mod_turn_external.lua	Wed Mar 11 16:59:10 2026 +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