mirror of
https://github.com/webtorrent/bittorrent-tracker.git
synced 2025-01-05 22:10:11 +00:00
feross -> webtorrent
This commit is contained in:
parent
3e87df8699
commit
056a83d1b5
@ -24,7 +24,7 @@ and to avoid style arguments. `npm test` runs `standard` automatically, so you d
|
|||||||
to!
|
to!
|
||||||
|
|
||||||
[standard-image]: https://cdn.rawgit.com/feross/standard/master/badge.svg
|
[standard-image]: https://cdn.rawgit.com/feross/standard/master/badge.svg
|
||||||
[standard-url]: https://github.com/feross/standard
|
[standard-url]: https://standardjs.com
|
||||||
|
|
||||||
## Project Governance
|
## Project Governance
|
||||||
|
|
||||||
|
2
LICENSE
2
LICENSE
@ -1,6 +1,6 @@
|
|||||||
The MIT License (MIT)
|
The MIT License (MIT)
|
||||||
|
|
||||||
Copyright (c) Feross Aboukhadijeh
|
Copyright (c) Feross Aboukhadijeh and WebTorrent, LLC
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
||||||
this software and associated documentation files (the "Software"), to deal in
|
this software and associated documentation files (the "Software"), to deal in
|
||||||
|
14
README.md
14
README.md
@ -1,7 +1,7 @@
|
|||||||
# bittorrent-tracker [![travis][travis-image]][travis-url] [![npm][npm-image]][npm-url] [![downloads][downloads-image]][downloads-url] [![javascript style guide][standard-image]][standard-url]
|
# bittorrent-tracker [![travis][travis-image]][travis-url] [![npm][npm-image]][npm-url] [![downloads][downloads-image]][downloads-url] [![javascript style guide][standard-image]][standard-url]
|
||||||
|
|
||||||
[travis-image]: https://img.shields.io/travis/feross/bittorrent-tracker/master.svg
|
[travis-image]: https://img.shields.io/travis/webtorrent/bittorrent-tracker/master.svg
|
||||||
[travis-url]: https://travis-ci.org/feross/bittorrent-tracker
|
[travis-url]: https://travis-ci.org/webtorrent/bittorrent-tracker
|
||||||
[npm-image]: https://img.shields.io/npm/v/bittorrent-tracker.svg
|
[npm-image]: https://img.shields.io/npm/v/bittorrent-tracker.svg
|
||||||
[npm-url]: https://npmjs.org/package/bittorrent-tracker
|
[npm-url]: https://npmjs.org/package/bittorrent-tracker
|
||||||
[downloads-image]: https://img.shields.io/npm/dm/bittorrent-tracker.svg
|
[downloads-image]: https://img.shields.io/npm/dm/bittorrent-tracker.svg
|
||||||
@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
#### Simple, robust, BitTorrent tracker (client & server) implementation
|
#### Simple, robust, BitTorrent tracker (client & server) implementation
|
||||||
|
|
||||||
![tracker](https://raw.githubusercontent.com/feross/bittorrent-tracker/master/img.png)
|
![tracker](https://raw.githubusercontent.com/webtorrent/bittorrent-tracker/master/img.png)
|
||||||
|
|
||||||
Node.js implementation of a [BitTorrent tracker](https://wiki.theory.org/BitTorrentSpecification#Tracker_HTTP.2FHTTPS_Protocol), client and server.
|
Node.js implementation of a [BitTorrent tracker](https://wiki.theory.org/BitTorrentSpecification#Tracker_HTTP.2FHTTPS_Protocol), client and server.
|
||||||
|
|
||||||
@ -33,10 +33,10 @@ This module is used by [WebTorrent](http://webtorrent.io).
|
|||||||
- Supports tracker "scrape" extension
|
- Supports tracker "scrape" extension
|
||||||
- Robust and well-tested
|
- Robust and well-tested
|
||||||
- Comprehensive test suite (runs entirely offline, so it's reliable)
|
- Comprehensive test suite (runs entirely offline, so it's reliable)
|
||||||
- Used by popular clients: [WebTorrent](http://webtorrent.io), [peerflix](https://github.com/mafintosh/peerflix), and [playback](https://mafintosh.github.io/playback/)
|
- Used by popular clients: [WebTorrent](http://webtorrent.io), [peerflix](https://www.npmjs.com/package/peerflix), and [playback](https://mafintosh.github.io/playback/)
|
||||||
- Tracker statistics available via web interface at `/stats` or JSON data at `/stats.json`
|
- Tracker statistics available via web interface at `/stats` or JSON data at `/stats.json`
|
||||||
|
|
||||||
Also see [bittorrent-dht](https://github.com/feross/bittorrent-dht).
|
Also see [bittorrent-dht](https://www.npmjs.com/package/bittorrent-dht).
|
||||||
|
|
||||||
## install
|
## install
|
||||||
|
|
||||||
@ -268,10 +268,8 @@ $ bittorrent-tracker --help
|
|||||||
-q, --quiet only show error output
|
-q, --quiet only show error output
|
||||||
-s, --silent show no output
|
-s, --silent show no output
|
||||||
-v, --version print the current version
|
-v, --version print the current version
|
||||||
|
|
||||||
Please report bugs! https://github.com/feross/bittorrent-tracker/issues
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## license
|
## license
|
||||||
|
|
||||||
MIT. Copyright (c) [Feross Aboukhadijeh](http://feross.org).
|
MIT. Copyright (c) [Feross Aboukhadijeh](https://feross.org) and [WebTorrent, LLC](https://webtorrent.io).
|
||||||
|
@ -63,8 +63,6 @@ if (argv.help) {
|
|||||||
-s, --silent show no output
|
-s, --silent show no output
|
||||||
-v, --version print the current version
|
-v, --version print the current version
|
||||||
|
|
||||||
Please report bugs! https://github.com/feross/bittorrent-tracker/issues
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
}.toString().split(/\n/).slice(2, -2).join('\n'))
|
}.toString().split(/\n/).slice(2, -2).join('\n'))
|
||||||
process.exit(0)
|
process.exit(0)
|
||||||
|
@ -66,7 +66,7 @@ function Client (opts) {
|
|||||||
self._userAgent = opts.userAgent
|
self._userAgent = opts.userAgent
|
||||||
|
|
||||||
// Support lazy 'wrtc' module initialization
|
// Support lazy 'wrtc' module initialization
|
||||||
// See: https://github.com/feross/webtorrent-hybrid/issues/46
|
// See: https://github.com/webtorrent/webtorrent-hybrid/issues/46
|
||||||
self._wrtc = typeof opts.wrtc === 'function' ? opts.wrtc() : opts.wrtc
|
self._wrtc = typeof opts.wrtc === 'function' ? opts.wrtc() : opts.wrtc
|
||||||
|
|
||||||
var announce = typeof opts.announce === 'string'
|
var announce = typeof opts.announce === 'string'
|
||||||
|
10
package.json
10
package.json
@ -3,9 +3,9 @@
|
|||||||
"description": "Simple, robust, BitTorrent tracker (client & server) implementation",
|
"description": "Simple, robust, BitTorrent tracker (client & server) implementation",
|
||||||
"version": "9.2.1",
|
"version": "9.2.1",
|
||||||
"author": {
|
"author": {
|
||||||
"name": "Feross Aboukhadijeh",
|
"name": "WebTorrent, LLC",
|
||||||
"email": "feross@feross.org",
|
"email": "feross@webtorrent.io",
|
||||||
"url": "http://feross.org/"
|
"url": "https://webtorrent.io"
|
||||||
},
|
},
|
||||||
"bin": {
|
"bin": {
|
||||||
"bittorrent-tracker": "./bin/cmd.js"
|
"bittorrent-tracker": "./bin/cmd.js"
|
||||||
@ -17,7 +17,7 @@
|
|||||||
"./server.js": false
|
"./server.js": false
|
||||||
},
|
},
|
||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://github.com/feross/bittorrent-tracker/issues"
|
"url": "https://github.com/webtorrent/bittorrent-tracker/issues"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"bencode": "^0.11.0",
|
"bencode": "^0.11.0",
|
||||||
@ -68,7 +68,7 @@
|
|||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "git://github.com/feross/bittorrent-tracker.git"
|
"url": "git://github.com/webtorrent/bittorrent-tracker.git"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"update-authors": "./bin/update-authors.sh",
|
"update-authors": "./bin/update-authors.sh",
|
||||||
|
@ -2,7 +2,7 @@ var Buffer = require('safe-buffer').Buffer
|
|||||||
var common = require('../lib/common')
|
var common = require('../lib/common')
|
||||||
var test = require('tape')
|
var test = require('tape')
|
||||||
|
|
||||||
// https://github.com/feross/webtorrent/issues/196
|
// https://github.com/webtorrent/webtorrent/issues/196
|
||||||
test('encode special chars +* in http tracker urls', function (t) {
|
test('encode special chars +* in http tracker urls', function (t) {
|
||||||
var q = {
|
var q = {
|
||||||
info_hash: Buffer.from('a2a15537542b22925ad10486bf7a8b2a9c42f0d1', 'hex').toString('binary')
|
info_hash: Buffer.from('a2a15537542b22925ad10486bf7a8b2a9c42f0d1', 'hex').toString('binary')
|
||||||
|
Loading…
Reference in New Issue
Block a user