Hi,

Attached is a patch to properly enable turns support, which I believe never 
worked as the credentials weren't actually handed to clients. I'm not familiar 
with the codebase though hence please point out if I'm missing something 
obvious - thanks!

---
Mike Yuan - yhn.sh

-- 
You received this message because you are subscribed to the Google Groups 
"prosody-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/prosody-dev/FNvvGT9Ph9GbkJ4jw741b_ebub3ivz5uIq2SAm-EXojNXSCdolUGnYkuBICh_lCqBEQMmubUiSwwOo8iqbWKUnguynXi1T8IcDGEVEVy6TE%3D%40yhndnzj.com.
# HG changeset patch
# User Mike Yuan <[email protected]>
# Date 1763629446 -3600
#      Thu Nov 20 10:04:06 2025 +0100
# Node ID c1ea4d8cf69f32ee882f60dfb8b9e051257bc810
# Parent  0ff11f2e87cd697ae19e640a76c30205671b1041
mod_turn_external: hand out credentials for type == turns too

Fixes 12283:b5686debb497

diff -r 0ff11f2e87cd -r c1ea4d8cf69f plugins/mod_turn_external.lua
--- a/plugins/mod_turn_external.lua	Fri Nov 07 00:29:44 2025 +0100
+++ 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

Reply via email to