diff --git a/js/constants.js b/js/constants.js index d3abdaef..19780950 100644 --- a/js/constants.js +++ b/js/constants.js @@ -4,8 +4,9 @@ const DEFAULT_FLAGS = Object.freeze({ VIEW_FILTER_INCLUDE_LEGACY_VIDEO: false, WSS_TRACKERS: Object.freeze([ "wss://tracker.openwebtorrent.com", - "wss://tracker.btorrent.xyz", + "wss://tracker.fastcast.nz", "wss://tracker.webtorrent.dev", + "wss://tracker.sloppyta.co:443/announce", ]), }); diff --git a/js/webtorrent.js b/js/webtorrent.js index 8e8add87..c237558a 100644 --- a/js/webtorrent.js +++ b/js/webtorrent.js @@ -1,11 +1,9 @@ //js/webtorrent.js import WebTorrent from "./webtorrent.min.js"; +import { WSS_TRACKERS } from "./constants.js"; -const DEFAULT_PROBE_TRACKERS = Object.freeze([ - "wss://tracker.btorrent.xyz", - "wss://tracker.openwebtorrent.com", -]); +const DEFAULT_PROBE_TRACKERS = Object.freeze([...WSS_TRACKERS]); function decodeComponentSafe(value) { if (typeof value !== "string") {