Novage / wt-tracker

High-performance WebTorrent tracker
Apache License 2.0
249 stars 87 forks source link

release if possible #20

Closed DenisFeedYT closed 7 months ago

DenisFeedYT commented 4 years ago

Hello again, could you make a release (and build w/o uWebSockets.js) ? / very many errors on 12.16 and there is no certainty that we our builds is correct /

and it would be nice to make a simple boot file the same as https://github.com/webtorrent/bittorrent-tracker/blob/master/bin/cmd.js with "filter: function (infoHash, params, cb)" for compatibility and quick change ;-)

Thanks!

mrlika commented 4 years ago

Just updated to use the latest dependencies.

very many errors on 12.16

What errors do you mean?

and it would be nice to make a simple boot file

I will think about how to do it. You can add your filters directly to the source code there: https://github.com/Novage/wt-tracker/blob/e21342dcb3505944aa180895bf40d086ce40309d/lib/uws-tracker.ts#L193

Something like:

try {
    if (json.info_hash !== "myinfohash") {
        throw new Error("bad info hash");
    }
} catch (e) {
    debugWebSockets("message filtered", e);
    ws.close();
    return;
}
DenisFeedYT commented 4 years ago

ok, works w/o errors!

Thanks!