Use TURN server in WebTorrent config

master
Torjus 2018-07-30 09:38:06 +02:00
parent 9f9d2c1c65
commit f912d82002
1 changed files with 8 additions and 2 deletions

View File

@ -5,9 +5,15 @@ import dragDrop from 'drag-drop';
import * as stateActions from '../../redux/stateActions';
import * as requestActions from '../../redux/requestActions';
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) =>
{