Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/webtorrent/webtorrent.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2018-03-03Merge pull request #1260 from diracdeltas/fix/add-hostname-optFeross Aboukhadijeh
Add hostname option to mitigate DNS rebinding
2018-03-03simplify double if statementFeross Aboukhadijeh
2018-02-18standardFeross Aboukhadijeh
2018-01-26mime@2Feross Aboukhadijeh
2018-01-12Add hostname option to mitigate DNS rebindingyan
This adds the `hostname` opt to allow the server to validate the `Host` header of incoming requests to prevent DNS rebinding attacks. Needed for https://github.com/brave/browser-laptop/issues/12616.
2017-09-25Fix file.downloaded for last pieceAlex
2017-09-10Merge pull request #1183 from magicxiao/fix_debug_function_undefined_bugDiego Rodríguez Baquero
fix debug function undefined bug
2017-09-08fix debug function undefined bugXiaoJun
2017-07-29Raise error when streaming from a removed torrentDavid Chevers Williams
In Node.js 8.2.1, when a torrent is removed while a file from it is being streamed, file-stream.js exits, crashing Node with a TypeError: VM535 file-stream.js:64 Uncaught TypeError: Cannot read property 'get' of null This patch checks whether the torrent has been marked as destroyed, and if so, raises the error to the file stream.
2017-06-25Merge pull request #1096 from webtorrent/feross/corsDiego R. B
Add `origin` option for torrent.createServer()
2017-06-01added file.progress property, along with documentationAsh
2017-04-15feross -> webtorrentFeross Aboukhadijeh
2017-04-14Fix uncaught exception (#1103)Feross Aboukhadijeh
Fixes: https://github.com/feross/webtorrent/issues/1100 Fixes: https://github.com/feross/webtorrent/issues/1101
2017-04-08Add `origin` option for torrent.createServer()Feross Aboukhadijeh
When the origin option is specified, only requests from the given origin will be allowed. This is useful to add additional security to any app that is starting a WebTorrent server but doesn't want it to be exposed to the entire Web.
2017-03-17Merge pull request #1078 from pahwaranger/masterFeross Aboukhadijeh
add filename to path
2017-03-17add filename to URLpahwaranger
2017-03-17doc: torrent.createServer() takes a function argumentFeross Aboukhadijeh
2017-03-14Fix files under 16Kb are not downloaded correctlyFeross Aboukhadijeh
Fixes: https://github.com/feross/webtorrent/issues/1077 Bug originally introduced in: https://github.com/feross/webtorrent/commit/6ef2785e4bbed07f2429725ed2b0 5bd91fc36233?diff=split
2017-03-13Fix detection of seeding peersmalone
2017-02-14wait to notify() or updateInterest() at end of GCFeross Aboukhadijeh
To prevent it from possibly being called twice, which will do extra work
2017-02-12change os.tmpDir() to os.tmpdir()William
fixes deprecation warnings
2017-02-10Refactor http server; support content-dispositionFeross Aboukhadijeh
Refactored the server into many smaller functions to make it easier to understand all the different code paths. - added a Content-Disposition header, which tells the browser the file's name, since we use urls like http://localhost:port/0 <-- no human-readable file name - Server returns valid HTML documents (with all the required tags) now. - Return 204 status for OPTIONS request - reduce access-control-max-age to chromium max of 600s - respond to OPTIONS requests that lack 'access-control-request-headers' (before they were treated as GET) - return '405 invalid verb' for all other verbs For: https://github.com/brave/browser-laptop/issues/6737
2017-02-03Don't print debug log after torrent is destroyedFeross Aboukhadijeh
2017-02-03Be more defensive: prevent code from running after destroyFeross Aboukhadijeh
2017-02-03Fix "Cannot read property 'complete' of null"Feross Aboukhadijeh
Fixes: https://github.com/feross/webtorrent/issues/1022 We also check `self.destroyed` since `torrent.destroy()` could have been called in the `torrent.on('done')` handler, triggered by `_checkDone()`.
2017-02-03include infoHash in torrent.js debug logsFeross Aboukhadijeh
2017-01-20Merge pull request #1021 from feross/emit-more-warningsFeross Aboukhadijeh
Emit more warnings
2017-01-20Merge pull request #1019 from feross/fix-962Feross Aboukhadijeh
Set user-agent header for http tracker requests
2017-01-19Emit more warningsFeross Aboukhadijeh
Convert some debug statements that could be useful for an API user (either because they want to show to the user, or to react to the warning in some way) Fixes https://github.com/feross/webtorrent/issues/960
2017-01-18Address feross's feedbackFeross Aboukhadijeh
2017-01-18Set user-agent header for http tracker requestsFeross Aboukhadijeh
Fixes: https://github.com/feross/webtorrent/issues/962
2016-12-06don't emit 'completed' on client.seedSidd Sridharan
2016-11-28Do not choke on web seeds (#972)George Petrov
Web seeds should be considered as pure unchecked seeds according to BEP19 So we should never choke on them. Otherwise when there are no other seeds, the downloads will hang
2016-11-10Adding property for downloaded bytes per file.Mikeal Rogers
2016-10-13Cross-origin HTTP redirect workaround (#909)Jack Bates
2016-09-18server: Handle invalid range handers instead of throwing (#921)Feross Aboukhadijeh
Fixes: #920
2016-09-17Option to disable BEP19 web seedsDC
2016-09-05Handle no-arg server.destroy(), fixes #899DC
2016-09-05Fix server.close, fixes #900DC
2016-08-21better debug idFeross Aboukhadijeh
2016-08-19Prevent possible stack overflowFeross Aboukhadijeh
See https://github.com/feross/run-parallel-limit/issues/5
2016-08-04Add options to disable autoplay/hide controlsFeross Aboukhadijeh
Fix #878.
2016-07-28Allow entire torrent deselect() to be called earlierFeross Aboukhadijeh
// Remove default selection (whole torrent) torrent.deselect(0, torrent.pieces.length - 1, false) Can now be called earlier, after 'metadata' instead of after 'ready' https://github.com/feross/webtorrent/issues/857#issuecomment-236022556
2016-07-27Clarify 'error' event handling in docsFeross Aboukhadijeh
2016-07-26Use discovery.complete() APIFeross Aboukhadijeh
2016-06-22WebTorrent http server: Fix HEAD requestsFeross Aboukhadijeh
Don't send the entire response body
2016-06-15API: Add file.getBlob() methodFeross Aboukhadijeh
Get a W3C `Blob` object which contains the file data. The file will be fetched from the network with highest priority, and `callback` will be called once the file is ready. `callback` must be specified, and will be called with a an `Error` (or `null`) and the `Blob` object.
2016-06-12Fixes for PR #834Feross Aboukhadijeh
2016-06-12Update tcp-pool.jsDiego Rodríguez Baquero
Prevent arrayRemove if the pool is already destroyed. Fixes possible error `TypeError: Cannot read property 'indexOf' of null`
2016-06-11Use < since it handles NaN in a predictable way, i.e. falseFeross Aboukhadijeh