Skip to content

Commit 109f93f

Browse files
authored
Update _worker.js
1 parent cc12333 commit 109f93f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

_worker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3497,7 +3497,7 @@ async function turnConnect(proxy, targetHost, targetPort, TCP连接) {
34973497
) {
34983498
const realmBytes = message.attributes[TURN_STUN_ATTR.REALM];
34993499
const nonce = message.attributes[TURN_STUN_ATTR.NONCE];
3500-
if (!realmBytes?.byteLength || !nonce?.byteLength) throw new Error('TURN authentication challenge is missing realm or nonce');
3500+
if (!realmBytes || !nonce?.byteLength) throw new Error('TURN authentication challenge is missing realm or nonce');
35013501

35023502
const realm = textDecoder.decode(realmBytes);
35033503
integrityKey = new Uint8Array(await crypto.subtle.digest('MD5', textEncoder.encode(`${proxy.username}:${realm}:${proxy.password}`)));

0 commit comments

Comments
 (0)