diff --git a/app/lib/components/Chat/FileSharing.jsx b/app/lib/components/Chat/FileSharing.jsx index f2b248a..339b346 100644 --- a/app/lib/components/Chat/FileSharing.jsx +++ b/app/lib/components/Chat/FileSharing.jsx @@ -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) => {