Matt Joiner
baddf0e528
cmd/torrent: Use anacrolix/args and merge several other cmds in as subcommands
2021-09-15 10:54:14 +10:00
YenForYang
1bb6724020
Remove xerrors dependency ( #600 )
...
* Remove xerrors dependency
* Update main.go
2021-09-13 11:38:08 +10:00
Zilog8
ccb90f1252
Improve Closing ( #559 )
...
- Prevent double-closing in cmd/torrent
- Move async closing from storage to torrents, and wait on them to finish tidying up before returning/exiting.
2021-09-05 11:33:41 +10:00
Matt Joiner
62911fd656
cmd/torrent download: Don't seed if no torrents are specified
2021-09-02 10:22:32 +10:00
Matt Joiner
a570b83870
Update and expose default client identifiers
2021-06-25 11:29:59 +10:00
Matt Joiner
c3c982b621
Fixes for wasm
2021-06-23 17:24:50 +10:00
Matt Joiner
ad298364aa
Add client-level max unverified bytes
2021-06-07 13:01:39 +10:00
Matt Joiner
8654f1b01d
Move envpprof.Stop to main
2021-05-14 15:43:24 +10:00
Matt Joiner
b9c36ebef3
cmd/torrent: Track download rate
2021-05-14 15:42:20 +10:00
Matt Joiner
8706d326ba
cmd/torrent: Ensure progress is emitted at consistent intervals
2021-05-04 16:08:21 +10:00
Matt Joiner
bb4fc82d4b
cmd/torrent: Restore parsing of units for upload and download rates
...
https://github.com/anacrolix/torrent/issues/447
2021-05-04 16:00:22 +10:00
Matt Joiner
305ba51dc2
Big logging cleanup to improve experience from README
2021-05-04 12:44:51 +10:00
Matt Joiner
1e9d382af9
Reinstate cmd/announce announce subcommand
2021-01-04 13:37:44 +11:00
Matt Joiner
65db2436fd
cmd/torrent: Add spew-bencoding command
2020-12-09 20:01:53 +11:00
Matt Joiner
143bf42f5e
cmd/torrent: Fix download command default flags
2020-12-09 20:01:33 +11:00
Matt Joiner
e67fe7ddca
cmd/torrent: Add file pick flag
2020-12-09 20:00:42 +11:00
Matt Joiner
3178691f15
cmd/torrent: Use alexflint/go-arg for argument parsing
...
Also add list-files command to test it out.
2020-12-09 16:18:54 +11:00
Matt Joiner
8088002ba6
Fix error handling for bad torrent adds with safe file handling
2020-10-15 16:03:43 +11:00
Matt Joiner
fde583e51e
Support -testPeer addresses that need resolving
...
Fixes #395 .
2020-07-10 13:21:24 +10:00
Matt Joiner
72bd4f362e
Add option to disable webseeds
2020-06-02 16:17:32 +10:00
Matt Joiner
67c9021e97
Support disabling webtorrent
2020-06-01 18:24:46 +10:00
Matt Joiner
cb37a914c1
Rename Peer to PeerInfo, and unexport PeerInfos
2020-05-29 19:44:48 +10:00
Matt Joiner
11e13ac8c1
cmd/torrent: Output stats on termination, not just completion
2020-05-03 18:42:37 +10:00
Matt Joiner
90bbdf9adb
cmd/torrent: Add download -pex flag
...
For testing with https://github.com/anacrolix/torrent/issues/402 .
2020-05-03 18:42:03 +10:00
Matt Joiner
11a373200f
cmd/torrent: Only output progress lines when they change
...
This stops spamming output when seeding.
2020-05-03 18:41:33 +10:00
Yaroslav Kolomiiets
dad28e674e
cmd/torrent: add -ipv4/-ipv6 options
2020-04-17 11:06:50 +10:00
Matt Joiner
8cf3ce187d
cmd/torrent: Fix -{utp,tcp}Peers defaults
...
Addresses https://github.com/anacrolix/torrent/issues/396#issuecomment-614210103 .
2020-04-16 10:26:37 +10:00
Matt Joiner
3e5c6d3d44
cmd/torrent: Add download -tcpPeers and -utpPeers
2020-04-11 13:03:41 +10:00
Matt Joiner
d3b6bcef97
Add announce and download commands to cmd/torrent
2020-04-10 15:27:30 +10:00
Matt Joiner
7fe199992c
Use stable bit set for pending pieces PriorityBitmap
...
Fixes #382 .
2020-02-27 18:33:44 +11:00
Matt Joiner
9fb9112d8f
cmd/torrent: Ditch the progress bar
...
I'm not happy with any implementations. The one in use was racy anyway. Helps progress toward fixing #382 .
2020-02-27 16:50:14 +11:00
Matt Joiner
d24922dc09
Add support for non-IP-based networks
...
Includes a test with unix sockets. Exposes AddDialer, AddListener, and reworks Peer.
2020-02-20 16:47:37 +11:00
Matt Joiner
bd4176f5ea
cmd/torrent: Disable accept rate limiting
2020-01-04 17:16:48 +11:00
Matt Joiner
8323dd9a14
cmd/torrent: Move log setup earlier to avoid race
2020-01-04 16:41:18 +11:00
Matt Joiner
5746877e1d
cmd/torrent: Synchronize stopping
2020-01-04 16:41:02 +11:00
Matt Joiner
01f9fdb921
Upgrade to log v0.5.0
2020-01-03 15:37:08 +11:00
Matt Joiner
bfbed8ab6d
cmd/torrent: Make the addr flag a string
...
This avoids tagflag trying to resolve it, and then passing a bad IP for different listen networks. There's also a patch to tagflag so it doesn't do this anymore.
2020-01-03 14:51:26 +11:00
Matt Joiner
e24a9b343f
cmd/torrent: Add dht flag
2020-01-03 14:51:26 +11:00
D. HT. Yu
6e95274413
fix if statement in `cmd/torrent/main.go` ( #349 )
2019-12-08 20:34:24 +11:00
Matt Joiner
eb4dad73ae
Lots of improvements to logging
2019-08-22 13:59:04 +10:00
Matt Joiner
cb1bf0f413
goimports -local
2019-08-21 20:58:40 +10:00
Matt Joiner
09b587f17b
Comments
2019-07-19 13:04:10 +10:00
Matt Joiner
fb7293a94f
cmd/torrent: Add flag for progress bar
2019-07-19 13:01:36 +10:00
Matt Joiner
93d34dd122
cmd/torrent: Don't log the public IP flag value
2019-07-19 13:00:31 +10:00
Matt Joiner
ba9300e27e
cmd/torrent: Add -publicIp flag
2019-01-08 15:47:01 +11:00
Matt Joiner
fc4fab91f5
Switch to goimports import sorting
...
Used to use sortimports, but it's old, and goimports seems to have an opinion now.
2018-11-02 23:12:01 +11:00
jb
5a09866db4
attempt to close the client on signal
2018-07-24 09:34:06 +02:00
Matt Joiner
a7e338a3f1
More sortimports
2018-07-07 11:40:06 +10:00
Matt Joiner
cee8e3b9f9
Update external use of ClientConfig
2018-06-16 16:33:40 +10:00
Matt Joiner
37fc800cb1
cmd/torrent: Add -stats flag
...
Requires updated tagflag package.
2018-06-06 00:40:03 +10:00
Matt Joiner
b5df073217
Support different hosts for each network
...
CircleCI's localhost hostname doesn't resolve for IPv6.
2018-04-12 15:06:53 +10:00
Matt Joiner
319e57d1c6
Rework conns to/and allow multiple DHT servers
...
This will help with #229 , and IPv6 support.
2018-04-12 11:41:07 +10:00
Matt Joiner
5a7c4fc135
cmd/torrent: Add packed-blocklist flag
2018-02-19 16:20:31 +11:00
Matt Joiner
358c6c8649
cmd/torrent: Fix logging when progress bar and stderr are the same file
2018-01-25 13:12:46 +11:00
Matt Joiner
ddd1e90d45
Fix cmd/torrent -debug
2018-01-25 13:11:32 +11:00
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
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
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
1b3e37b9ed
cmd/torrent: Remove unused "short" tag
2016-06-18 16:02:59 +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
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
d3a1c79c79
Merge Torrent and torrent types
2016-04-03 18:40:43 +10: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
153c13db43
Revert "Merge pull request #54 from zhulik/master"
...
This reverts commit 5cf75b869c
, reversing
changes made to 09050ff2c5
.
2016-01-06 12:19:49 +11:00
Gleb Sinyavsky
48c3df2d43
Refactorings
2016-01-05 11:48:16 +03:00
Gleb Sinyavsky
052a899f60
cmd utils fixed
2015-12-27 14:59:07 +03:00
Matt Joiner
9230a1b9df
Use uiprogress to display a progress bar per torrent
2015-11-22 18:45:06 +11:00
Matt Joiner
c7f9bfccc1
Ditch go-flags for tagflag
...
Fixes #37
2015-11-05 23:21:39 +11:00
Matt Joiner
b8da06a885
cmd/torrent: Expose --mmap
2015-10-23 12:42:19 +11:00
Matt Joiner
8069573abe
cmd/torrent: Remove some dead code
2015-07-21 22:54:50 +10:00
Matt Joiner
9ea28a5094
go vet
2015-05-20 22:24:09 +10:00
Matt Joiner
ca86b0248e
go vet
2015-05-20 15:47:07 +10:00
Matt Joiner
0d13293d71
Support seeding
2015-05-15 08:39:53 +10:00
Matt Joiner
ca74d8ed33
Made Torrent.GotInfo a function, to avoid use of zero-initialized channel
2015-04-30 00:30:19 +10:00
Matt Joiner
0ec0302d1c
Publicly expose Torrent.GotInfo
2015-04-28 15:24:17 +10:00
Matt Joiner
526d9d738e
Rewrite imports to local bencode and metainfo
2015-04-27 14:55:01 +10:00
Matt Joiner
23ff66e300
cmd/...: Some package synopses
2015-04-06 23:04:18 +10:00
Matt Joiner
3aa78763aa
Use rogpeppe's sortimports to fix this goimports ordering madness
2015-03-26 17:18:08 +11:00
Matt Joiner
d97b487229
cmd/torrent: Report progress
...
Fixes #6
2015-03-25 17:32:42 +11:00
Matt Joiner
1ec15c9560
cmd/torrent: Replace flag with go-flags, rejig options
2015-03-25 15:41:15 +11:00
Jimmy Zelinskie
8cc582ecb2
add cli flag to disable DHT
...
This partially addresses #3 .
2015-03-22 18:24:31 -04:00
Matt Joiner
ed8e89a60c
cmd/torrent: Nicer usage
2015-03-20 23:18:32 +11:00
Matt Joiner
842a32ae0c
Rewrite import paths for migration from Bitbucket
2015-03-20 16:37:44 +11:00
Matt Joiner
ad6ac3f2cd
More cleaning of public interface
2015-03-08 17:28:14 +11:00
Matt Joiner
40593a741e
Provide HTTP pprof via envpprof package
2015-01-29 14:51:23 +11:00
Matt Joiner
75cde79d65
Improve the interface with client and download strategies
2014-12-01 03:37:33 -06:00
Matt Joiner
d430cf9ec9
cmd/torrent: Add -upload flag
2014-12-01 03:29:56 -06:00
Matt Joiner
a5adb399f2
Change cmd/torrent default ports
2014-11-16 21:21:13 -06:00
Matt Joiner
ecf2639856
Add magnet-metainfo, tool to download magnet to torrent file
2014-09-25 18:05:52 +10:00
Matt Joiner
d5a2bc67f7
Misc tweaks
2014-08-28 10:05:41 +10:00
Matt Joiner
2d9c22ae1e
Misc trivial improvements
2014-08-25 22:14:10 +10:00
Matt Joiner
74f05db2ea
Clean up imports
2014-08-21 21:08:56 +10:00