release: v4.8.7 WebRTC join reliability patch
CodeQL Analysis / Analyze CodeQL (push) Has been cancelled
Deploy Application / deploy (push) Has been cancelled
Mirror to Codeberg / mirror (push) Has been cancelled
Mirror to PrivacyGuides / mirror (push) Has been cancelled

This commit is contained in:
lockbitchat
2026-05-19 09:49:22 -04:00
parent 1cc873223a
commit 2468cb495e
17 changed files with 2093 additions and 217 deletions
+26
View File
@@ -112,4 +112,30 @@ function fake(config = {}) {
assert.equal(config.iceServers, overrideServers);
}
// ICE config diagnostics reveal whether TURN credentials were loaded without
// printing sensitive usernames or passwords.
{
const manager = fake({
iceServers: [
{ urls: 'stun:stun.example.test:3478' },
{
urls: ['turn:turn.example.test:3478?transport=udp', 'turns:turn.example.test:443?transport=tcp'],
username: 'user',
credential: 'secret'
}
]
});
const summary = EnhancedSecureWebRTCManager.prototype._summarizeIceServerConfig.call(
manager,
manager._config.webrtc.iceServers
);
assert.deepEqual(summary, {
serverCount: 2,
stun: 1,
turn: 1,
turns: 1,
hasCredentials: true
});
}
console.log('WebRTC privacy mode tests passed');