-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME
More file actions
41 lines (25 loc) · 958 Bytes
/
README
File metadata and controls
41 lines (25 loc) · 958 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
trackerjs - A nodejs-based BitTorrent tracker
pre-reqs: node
Clone the repo
cd trackerjs
edit config.js
node tracker.js
Obviously you will need torrents that list your new tracker. In linux I
prefer mktorrent:
mktorrent -a http://yourhost:port/announce <file or dir>
Fair warning: this was an exercise to learn more about node and js. The code
is terrible, barely works (or may not work for anything but my test), and
implements the bare minimum necessary to allow BT peers to talk to one
another.
The most horrible hack can be found in byte_array.js. Does js truly not have
a binary-safe datatype?
I welcome code or conceptual contributions.
It borrows from Anton Ekblad's bencode.js. Thanks to him.
TODO:
* fix host/ip handling
* tests
* implement peer list selection and numwant
* something better than byteArray.
* Stats tracking and eventual persistence for a companion index project
* IPv6 extensions
* Better Configuration