improve WebRTC NAT reliability diagnostics
This commit is contained in:
1 parent
f3c735b808
commit
365415740e
5 files changed
+104
-11
No files matched your search
@@ -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;
|
||||
}
|
||||
});
|
||||
Reference in new issue
Block a user