diff --git a/public/client.js b/public/client.js index ddb0932..a9203f3 100644 --- a/public/client.js +++ b/public/client.js @@ -19,9 +19,9 @@ export default class ClientList { const webrtc = new RTCPeerConnection({ iceServers: [{ urls: 'turn:satori.love:3478', - username: '', // 'your-username', - credential: '', // await crypto.subtle.digest('SHA-1', new TextEncoder().encode('your-password')), - credentialType: 'password' + username: 'your-username', + credential: await crypto.subtle.digest('SHA-1', new TextEncoder().encode('your-password')), + //credentialType: 'password' }] }) webrtc.onicecandidate = event => {