From 4078644db9faa6bc37559299aab1cf100b7f6a8a Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Thu, 28 Jan 2021 18:25:06 +1100 Subject: [PATCH] Pass callbacks to webseed peers --- torrent.go | 1 + 1 file changed, 1 insertion(+) 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 -- 2.48.1