improve WebRTC NAT reliability diagnostics
Build and Publish / Metadata (push) Successful in 3s
Build and Publish / BuildAndDeployAmd64 (push) Successful in 29s

This commit is contained in:
mats committed 2026-09-22 16:31:21 +02:00
1 parent f3c735b808
commit 365415740e
5 files changed
+104 -11

No files matched your search

+10
View File
@@ -91,3 +91,13 @@ test('TURN credentials generation with TURN_SECRET', () => {
delete process.env.TURN_SECRET;
}
});
test('ICE transport policy is passed through to browser configuration', () => {
const { iceConfig } = require('./server');
process.env.ICE_TRANSPORT_POLICY = 'relay';
try {
assert.strictEqual(iceConfig().iceTransportPolicy, 'relay');
} finally {
delete process.env.ICE_TRANSPORT_POLICY;
}
});