Skip to content

Commit 989c5a3

Browse files
authored
Allow calls without ICE/TURN/STUN servers (#3695)
1 parent 0778c4e commit 989c5a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/webrtc/call.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2834,7 +2834,7 @@ export class MatrixCall extends TypedEventEmitter<CallEvent, CallEventHandlerMap
28342834
private createPeerConnection(): RTCPeerConnection {
28352835
const pc = new window.RTCPeerConnection({
28362836
iceTransportPolicy: this.forceTURN ? "relay" : undefined,
2837-
iceServers: this.turnServers,
2837+
iceServers: this.turnServers.length ? this.turnServers : undefined,
28382838
iceCandidatePoolSize: this.client.iceCandidatePoolSize,
28392839
bundlePolicy: "max-bundle",
28402840
});

0 commit comments

Comments
 (0)