fixed 215 credential detection

This commit is contained in:
Daniel Gultsch 2020-04-16 21:58:30 +02:00
parent 8472712b3e
commit 0a18ab35c0

View file

@ -1002,7 +1002,7 @@ public class JingleRtpConnection extends AbstractJingleConnection implements Web
if (port < 0 || port > 65535) {
continue;
}
if (Arrays.asList("stun", "turn").contains(type) || Arrays.asList("udp", "tcp").contains(transport)) {
if (Arrays.asList("stun", "turn").contains(type) && Arrays.asList("udp", "tcp").contains(transport)) {
//TODO wrap ipv6 addresses
PeerConnection.IceServer.Builder iceServerBuilder = PeerConnection.IceServer.builder(String.format("%s:%s:%s?transport=%s", type, host, port, transport));
if (username != null && password != null) {