Skip to content

Commit b6cbba4

Browse files
committed
feat: add a TURN server to WebRTC leak test
1 parent db27962 commit b6cbba4

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

js/webrtc.js

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,17 @@ function tryIceLeak(RTCPeerConnectionClass) {
2323
{ urls: ['stun:stun.l.google.com:19302'] },
2424
// stun.l.google.com, but by IP, in case DNS doesn't work.
2525
{ urls: ['stun:173.194.76.127:19302'] },
26-
{ urls: ['stun:stun.voipgate.com:3478'] }
26+
{ urls: ['stun:stun.voipgate.com:3478'] },
27+
// This will not generate candidates,
28+
// because it's not a TURN server.
29+
// But this helps see e.g. with Wireshark
30+
// whether the browser will attempt to gather
31+
// relay (TURN) candidates.
32+
{
33+
urls: ['turn:173.194.76.127:19302'],
34+
username: 'foo',
35+
credential: 'bar',
36+
},
2737
]
2838
});
2939

0 commit comments

Comments
 (0)