diff --git a/src/components/Downloader.tsx b/src/components/Downloader.tsx index 37ea0fa..a0c050f 100644 --- a/src/components/Downloader.tsx +++ b/src/components/Downloader.tsx @@ -78,20 +78,6 @@ export function ConnectingToUploader({ - -

- Note: FilePizza is designed for direct transfers between known - parties and doesn't use{' '} - - TURN - {' '} - relay servers. This means it may not work on all networks. -

diff --git a/src/components/WebRTCProvider.tsx b/src/components/WebRTCProvider.tsx index 3f6088c..8c50c09 100644 --- a/src/components/WebRTCProvider.tsx +++ b/src/components/WebRTCProvider.tsx @@ -11,15 +11,6 @@ import React, { import Loading from './Loading' import Peer from 'peerjs' -const ICE_SERVERS: RTCConfiguration = { - iceServers: [ - { - urls: - process.env.NEXT_PUBLIC_STUN_SERVER ?? 'stun:stun.l.google.com:19302', - }, - ], -} - export type WebRTCPeerValue = { peer: Peer stop: () => void @@ -39,9 +30,7 @@ let globalPeer: Peer | null = null async function getOrCreateGlobalPeer(): Promise { if (!globalPeer) { - globalPeer = new Peer({ - config: ICE_SERVERS, - }) + globalPeer = new Peer() } if (globalPeer.id) {