From 2083f5f8fa245c755fd49761cf80a31448498a1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=A7=89?= Date: Sun, 1 Oct 2023 14:35:00 +0800 Subject: [PATCH] DEBUG --- public/client.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 => {