]> Sergey Matveev's repositories - btrtrc.git/commitdiff
Pass callbacks to webseed peers
authorMatt Joiner <anacrolix@gmail.com>
Thu, 28 Jan 2021 07:25:06 +0000 (18:25 +1100)
committerMatt Joiner <anacrolix@gmail.com>
Thu, 28 Jan 2021 07:25:06 +0000 (18:25 +1100)
torrent.go

index 0b858162fb01314e5d9cfd0761b873839f2ddb47..51921c12052f2e0f268e5df833fd2c657971f54b 100644 (file)
@@ -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