Use TURN server in WebTorrent config
This commit is contained in:
1 parent
9f9d2c1c65
commit
f912d82002
1 file changed
+8
-2
@@ -5,9 +5,15 @@ import dragDrop from 'drag-drop';
|
|||||||
import * as stateActions from '../../redux/stateActions';
|
import * as stateActions from '../../redux/stateActions';
|
||||||
import * as requestActions from '../../redux/requestActions';
|
import * as requestActions from '../../redux/requestActions';
|
||||||
import { store } from '../../store';
|
import { store } from '../../store';
|
||||||
import { promisify } from 'util';
|
import config from '../../../config';
|
||||||
|
|
||||||
export const client = new WebTorrent();
|
export const client = new WebTorrent({
|
||||||
|
tracker: {
|
||||||
|
rtcConfig: {
|
||||||
|
iceServers: config.turnServers
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
const notifyPeers = (file) =>
|
const notifyPeers = (file) =>
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in new issue
Block a user