|
@@ -356,7 +356,15 @@ class JingleConnectionPlugin extends ConnectionPlugin {
|
356
|
356
|
}
|
357
|
357
|
}
|
358
|
358
|
});
|
359
|
|
- this.jvbIceConfig.iceServers = iceservers;
|
|
359
|
+
|
|
360
|
+ if (this.xmpp.options.useStunTurn) {
|
|
361
|
+ this.jvbIceConfig.iceServers = iceservers;
|
|
362
|
+ }
|
|
363
|
+
|
|
364
|
+ if (this.xmpp.options.p2p.useStunTurn) {
|
|
365
|
+ this.p2pIceConfig.iceServers = iceservers;
|
|
366
|
+ }
|
|
367
|
+
|
360
|
368
|
}, err => {
|
361
|
369
|
logger.warn('getting turn credentials failed', err);
|
362
|
370
|
logger.warn('is mod_turncredentials or similar installed?');
|