Pass callbacks to webseed peers

This commit is contained in:
Matt Joiner 2021-01-28 18:25:06 +11:00
parent 1ac5811990
commit 4078644db9
1 changed files with 1 additions and 0 deletions

View 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