Commit Graph

3296 Commits

Author SHA1 Message Date
Matt Joiner 39af2fe8f2
Merge branch 'http-proxying' 2022-03-15 12:41:22 +11:00
Matt Joiner 361300cc93
Merge branch 'master' into crawshaw 2022-03-11 14:23:13 +11:00
Matt Joiner a319506dda
Expose Torrent.AddWebSeeds 2022-03-11 14:23:05 +11:00
Matt Joiner ec2b1b2073
Support banning webseeds 2022-03-11 14:05:31 +11:00
Matt Joiner 162cef5d1b
When banning an IP drop peers that match 2022-03-11 13:59:47 +11:00
Matt Joiner 91ecb1f0aa
Pull GO_LOG support from anacrolix/log 2022-03-11 13:56:41 +11:00
Matt Joiner 32501740f2
Support banning webseeds 2022-03-11 13:33:34 +11:00
Matt Joiner ef3a53d2e4
Pull GO_LOG support from anacrolix/log 2022-03-11 13:32:45 +11:00
Matt Joiner 529eb4b387
Add cmd/torrent-create -u 2022-03-11 12:11:01 +11:00
Matt Joiner 53f26d7d04
Test that empty info names are ignored in multi-file torrent webseed URLs 2022-03-11 12:03:18 +11:00
Matt Joiner 0062680e8e
Add cmd/torrent-create -i 2022-03-11 10:47:02 +11:00
Matt Joiner a3073edb43
Merge branch 'master' into crawshaw 2022-03-09 20:58:06 +11:00
Matt Joiner 9ac5ce70de
cmd/torrent: Add TODO about missing subcommand 2022-03-09 20:57:54 +11:00
Matt Joiner 02b6ee9954
Add bencode.Bytes.GoString 2022-03-09 20:57:23 +11:00
Matt Joiner 859d31facb
cmd/torrent: Add --port-forward 2022-03-09 20:56:48 +11:00
Matt Joiner 86c7c7c7bb
cmd/torrent: Add --port-forward 2022-03-09 20:56:06 +11:00
Matt Joiner 09bc6d118e Merge branch 'master' into crawshaw 2022-03-02 10:51:36 +11:00
Matt Joiner a450bbe6b2 cmd/torrent announce: Use NumWant -1
tracker.opentrackr.org will actually send no peers back unless you ask for them.
2022-03-02 10:51:19 +11:00
Matt Joiner 30a5d079be Quote http tracker error response body 2022-03-02 10:49:55 +11:00
Matt Joiner bf81f4a528 Merge branch 'http-proxying' into crawshaw 2022-02-25 19:59:47 +11:00
Matt Joiner 6e760a6210 Expect 200 OK in torrent source response 2022-02-25 19:59:16 +11:00
Matt Joiner 6f9390a125 Fix error quoting in log 2022-02-25 19:59:16 +11:00
Matt Joiner cb1291d565 Separate torrent sources source file 2022-02-25 19:59:16 +11:00
Matt Joiner d06f990b81 Use HTTP proxy config for torrent sources 2022-02-25 19:59:16 +11:00
Matt Joiner 716dc55321 Fix race in MergeSpec using DisableInitialPieceCheck 2022-02-25 19:55:26 +11:00
Matt Joiner 09df09596d Expose webseed.EscapePath 2022-02-23 18:03:52 +11:00
DeepSource Bot 81d6d4ac86 Update .deepsource.toml 2022-02-21 21:23:20 +00:00
Matt Joiner 0e4546b738 Add scrape subcommand to cmd/torrent 2022-02-20 16:16:57 +11:00
Matt Joiner fe43ce07c8 Quote UDP tracker response error bodies with %#q 2022-02-20 16:15:45 +11:00
FIGBERT 7d41b9b21c
Pass client logger to anacrolix/go-libutp sockets (#722)
* Update anacrolix/go-libutp (v1.1.0 -> v1.2.0)

* Pass client logger to anacrolix/go-libutp

* Pass logger instead of option

The project now compiles properly when CGO is not enabled.

Additionally, the new argument (now log.Logger instead of
utp.NewSocketOpt) is now required. The tests have been updated to match
this change, and now pass logger.Default to NewUtpSocket.

* Correct function signature of NewUtpSocket
2022-02-15 16:18:32 +11:00
deepsource-autofix[bot] e3d08999e1
Format code with gofumpt (#724)
This commit fixes the style issues introduced in b81470d according to the output
from gofumpt.

Details: https://deepsource.io/gh/anacrolix/torrent/transform/ccafd976-fc9a-4c8a-bbfe-bc36426e79cb/

Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
2022-02-11 22:45:12 +11:00
DeepSource Bot b81470dc39 Update .deepsource.toml 2022-02-11 06:33:32 +00:00
Matt Joiner f521c78de6 Merge branch 'master' into go1.18 2022-02-10 15:35:29 +11:00
Matt Joiner e0f489bfb2 Checkout go from github 2022-02-10 15:32:01 +11:00
Matt Joiner a18e96b471 Run tests on tip 2022-02-10 15:32:01 +11:00
Matt Joiner 3a57995bfc Fix and add caching to gotip CI actions
Fix and add caching to gotip CI actions
2022-02-10 15:32:01 +11:00
Matt Joiner 205266cb60 go CI: Use common action and parallel jobs 2022-02-10 15:31:43 +11:00
Matt Joiner 5966935cfb Fix and add caching to gotip CI actions 2022-02-10 14:57:03 +11:00
Matt Joiner 06d87cb235 Merge branch 'master' into go1.18 2022-02-10 12:50:16 +11:00
Matt Joiner e3594cce50 go CI: Use common action and parallel jobs 2022-02-10 12:33:04 +11:00
Matt Joiner 47a15797a4 Exclusively use crawshaw instead of zombiezen for sqlite
Zombiezen doesn't support as many platforms as crawshaw for example.
2022-02-10 10:22:39 +11:00
Matt Joiner f9664389d5 Align Peer stats for webseed peers 2022-02-10 10:13:53 +11:00
Matt Joiner 3181b6d667 fs/test.sh: Fail if hash does not match 2022-02-10 09:20:23 +11:00
Matt Joiner 6fbcfe0695 Re-enable CI wasm/js package build checks 2022-02-09 14:12:43 +11:00
Matt Joiner aa3569b863 Pull webrtc SCTP Transport wasm support 2022-02-09 14:12:42 +11:00
Matt Joiner d28b5a2193 Ensure gotip bin is used for go 2022-02-07 16:29:34 +11:00
Matt Joiner 068f885f8c go CI: Add GOPATH bin to GITHUB_PATH
This should fix godo not being in the path in a later step.
2022-02-07 16:16:10 +11:00
Matt Joiner 0f90f394a3 Merge branch 'master' into go1.18 2022-02-07 15:33:05 +11:00
Eng Zer Jun 841a702e34
test: use `T.TempDir` to create temporary test directory (#718)
The directory created by `T.TempDir` is automatically removed when the
test and all its subtests complete.

Reference: https://pkg.go.dev/testing#T.TempDir
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2022-02-02 18:26:46 +11:00
Matt Joiner d6534ea7e8 fs/test.sh: Add torrents before mounting 2022-01-31 17:35:53 +11:00