Commit Graph

187 Commits

Author SHA1 Message Date
Matt Joiner 881f1a7e35 Support plaintext crypto method for protocol header encryption 2017-09-13 18:20:20 +10:00
Matt Joiner 016b238cc5 cmd/torrent: Enhance debugging 2017-09-01 10:35:40 +10:00
Matt Joiner 756375879b cmd/torrent: Include global dht starting nodes 2017-08-28 20:54:37 +10:00
Matt Joiner 4ffcd9f1ce cmd/torrentfs: Switch to tagflag and rename -torrentPath->-metainfoDir 2017-08-27 12:25:51 +10:00
Matt Joiner 6268fa0b54 cmd/magnet-metainfo: Use tagflag 2017-08-27 11:46:06 +10:00
Matt Joiner dfb7f5b00c Make cmd/tracker-announce output a bit easier to consume 2017-08-26 12:38:08 +10:00
Matt Joiner 401974dd8d dht.ServerConfig.StartingNodes is now a function
Additionally cmd/torrentfs uses the global bootstrap nodes for its DHT. Aids with https://github.com/anacrolix/torrent/issues/180
2017-08-25 16:28:27 +10:00
Matt Joiner 89f39b0b09 Add some debugging routes and envpprof to cmd/magnet-metainfo
https://github.com/anacrolix/torrent/issues/178
2017-08-18 11:14:57 +10:00
Matt Joiner 99b3f98e3e Remove dht cmds, they're added to anacrolix/dht 2017-07-21 00:39:28 +10:00
Matt Joiner 78a8db10da sortimports 2017-03-19 17:04:32 +11:00
Matt Joiner b868a6b9e2 dht.Server.Announce now takes [20]byte 2017-02-07 15:01:02 +11:00
BonkaBonka 25990f44ee Abort verify at first hash mismatch. 2017-01-03 21:44:19 -05:00
Matt Joiner d8ca4ac92a Rewrite cmd/torrent-verify
Fixes #141
2017-01-01 10:08:45 +11:00
Matt Joiner b68d7cd08e dht/… moved to github.com/anacrolix/dht 2016-12-14 11:43:37 +11:00
Matt Joiner 9d35196cca cmd/torrent: Accept infohash: scheme torrents 2016-11-30 18:02:21 +11:00
Igor Shishkin c43751cfea Trivial HTTP support for adding torrent files by (#126)
* Trivial HTTP support for adding torrent files by

Sometimes it's really usefull to do not download
torrent file locally but simply pass HTTP link
this patch adds such ability.

Signed-off-by: Igor Shishkin <me@teran.ru>

* Fix for closing http connection after use

Signed-off-by: Igor Shishkin <me@teran.ru>
2016-10-25 19:13:06 +11:00
Matt Joiner d4cbdc5c38 Add download rate limiting
Fixes #121.
2016-10-10 17:29:39 +11:00
Meng Zhuo 23efae91e2 fix unreadable id when started 2016-09-22 12:03:59 +10:00
Meng Zhuo c4979954e8 fix dht-server cmd won't exit after Ctrl+C 2016-09-22 12:03:53 +10:00
Matt Joiner 594053609c Fixes for changes to metainfo.MetaInfo.UnmarshalInfo 2016-09-20 18:39:07 +10:00
Matt Joiner 7204503206 cmd/torrent: Fix progress bar for zero-length torrents 2016-09-12 17:47:07 +10:00
Ye Yin 2fba33d5a2 Pass seed option to Config for cmd/torrent 2016-08-31 17:20:20 +08:00
Matt Joiner 2a1cef7c9e Remove the InfoEx type, and don't generate its infohash on the fly
Fixes #106.
2016-08-26 20:29:05 +10:00
Matt Joiner 0bd5bcd1a5 cmd/torrentfs: Ensure unmounting occurs for some errors
Restructured so other errors can be handled better too.
2016-08-02 11:19:41 +10:00
ctn a3739fc47c torrentfs: fix panic when testPeer is not specified 2016-07-26 23:30:40 +03:00
Matt Joiner 1b3e37b9ed cmd/torrent: Remove unused "short" tag 2016-06-18 16:02:59 +10:00
Matt Joiner d20384b421 cmd/torrent-create: Improve spelling and descriptions 2016-06-16 12:27:49 +10:00
Alexey Kuznetsov ad5d5bc350 -a option (#86)
* add -a option

* name
2016-06-16 01:25:48 +10:00
Matt Joiner abbbb6e115 cmd/torrent-metainfo-pprint: Add Announce and AnnounceList keys 2016-05-23 10:18:39 +10:00
Matt Joiner a69044b9ea Break out KRPC stuff from dht into new package 2016-05-17 16:40:08 +10:00
Matt Joiner b714da8184 Torrent.AddPeers can't fail, so don't return an error 2016-05-12 12:26:09 +10:00
Matt Joiner 9c36d36654 cmd/torrent-infohash update for API changes 2016-05-06 15:09:59 +10:00
Matt Joiner 2d160b0419 metainfo.InfoEx.Hash becomes a function, UpdateBytes is added, and Bytes used in marshalling
Fixes #80.
2016-05-05 22:40:38 +10:00
Matt Joiner 3c612cbfc8 cmd/torrent-create: Tidy up flags and remove redundant function calls
Issue #80
2016-05-03 16:49:30 +10:00
Matt Joiner 8ae88151a8 cmd/torrent-metainfo-pprint: Add -files flag, and expose NumFiles and TotalLength in output 2016-05-03 12:51:31 +10:00
Matt Joiner 1936054615 cmd/torrent-metainfo-pprint: Also print InfoHash 2016-05-02 19:14:49 +10:00
Matt Joiner 2db45b1198 cmd/torrent: Add -addr flag back in 2016-04-19 17:20:14 +10:00
Matt Joiner 2dcbe31304 cmd/torrent: Forget trying to expose the entire Client config struct to the command-line 2016-04-18 21:30:28 +10:00
Matt Joiner 9bebc043ea cmd/torrent: Remove redundant _ "net/http/pprof" import
It's done by envpprof instead
2016-04-18 21:29:37 +10:00
Matt Joiner fa511154e4 Move Magnet and friends into metainfo package 2016-04-04 13:48:39 +10:00
Matt Joiner 6aacfe5589 Merge pull request #72 from shoenig/magnetize
convenience function for creating magnets
2016-04-04 13:20:15 +10:00
Seth Hoenig 890658ef93 convenience function for creating magnets 2016-04-03 10:05:17 -05:00
Matt Joiner d3a1c79c79 Merge Torrent and torrent types 2016-04-03 18:40:43 +10:00
Matt Joiner c469d4a837 cmd/torrent-metainfo-pprint: Switch to tagflag for argument parsing 2016-04-03 16:37:17 +10:00
Matt Joiner 0a3a5d6ae0 Finish fixing tests 2016-03-29 00:24:00 +11:00
Matt Joiner 775cf53809 Get mmap storage working 2016-03-28 21:57:04 +11:00
Matt Joiner b97b50aca9 New storage interface 2016-03-28 20:38:30 +11:00
Matt Joiner d5f888069f Ditch Data.WriteSectionTo, and fix cmd/torrent-verify 2016-02-18 11:45:31 +11:00
Matt Joiner 0c28a0f1b1 Use new tracker package interface 2016-02-07 18:49:35 +11:00
Matt Joiner 0e85ff190d go vet 2016-02-02 00:44:29 +11:00