@ -3,14 +3,6 @@ import alt from "../alt";
import socket from "filepizza-socket" ;
import { getClient } from "../wt" ;
const TRACKERS = process . env . WEBTORRENT _TRACKERS
? process . env . WEBTORRENT _TRACKERS . split ( ',' ) . map ( t => t . trim ( ) )
: [
[ "wss://tracker.openwebtorrent.com" ] ,
[ "wss://tracker.btorrent.xyz" ] ,
[ "wss://tracker.fastcast.nz" ]
] ;
const SPEED _REFRESH _TIME = 2000 ;
export default alt . createStore (
@ -34,7 +26,7 @@ export default alt.createStore(
this . status = "processing" ;
getClient ( ) . then ( client => {
client . seed ( file , { announce : TRACKERS } , torrent => {
client . seed ( file , { announce : client. tracker . announce } , torrent => {
const updateSpeed = ( ) => {
this . setState ( {
speedUp : torrent . uploadSpeed ,