fix stun url generation

This commit is contained in:
Daniel Gultsch 2023-10-01 08:02:55 +02:00
parent c9b80254e4
commit ac3ce93c56
No known key found for this signature in database
GPG key ID: F43D18AD2A0982C2

View file

@ -2644,7 +2644,7 @@ public class JingleRtpConnection extends AbstractJingleConnection
// STUN URLs do not support a query section since M110
final String uri;
if (Arrays.asList("stun","stuns").contains(type)) {
uri = String.format("%s:%s%s", type, IP.wrapIPv6(host),port);
uri = String.format("%s:%s:%s", type, IP.wrapIPv6(host),port);
} else {
uri = String.format(
"%s:%s:%s?transport=%s",