projects
/
btrtrc.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1ac5811
)
Pass callbacks to webseed peers
author
Matt Joiner <anacrolix@gmail.com>
Thu, 28 Jan 2021 07:25:06 +0000 (18:25 +1100)
committer
Matt Joiner <anacrolix@gmail.com>
Thu, 28 Jan 2021 07:25:06 +0000 (18:25 +1100)
torrent.go
patch
|
blob
|
history
diff --git
a/torrent.go
b/torrent.go
index 0b858162fb01314e5d9cfd0761b873839f2ddb47..51921c12052f2e0f268e5df833fd2c657971f54b 100644
(file)
--- a/
torrent.go
+++ b/
torrent.go
@@
-2120,6
+2120,7
@@
func (t *Torrent) addWebSeed(url string) {
// TODO: Raise this limit, and instead limit concurrent fetches.
PeerMaxRequests: maxRequests,
RemoteAddr: remoteAddrFromUrl(url),
+ callbacks: t.callbacks(),
},
client: webseed.Client{
// TODO: Investigate a MaxConnsPerHost in the transport for this, possibly in a global