From: Matt Joiner Date: Thu, 28 Jan 2021 07:25:06 +0000 (+1100) Subject: Pass callbacks to webseed peers X-Git-Tag: v1.22.0~4 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=4078644db9faa6bc37559299aab1cf100b7f6a8a;p=btrtrc.git Pass callbacks to webseed peers --- diff --git a/torrent.go b/torrent.go index 0b858162..51921c12 100644 --- 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