mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 21:46:11 +05:00
change timeout
This commit is contained in:
@@ -81,7 +81,7 @@ func fromHttp(link string) (*torrent.TorrentSpec, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
client := new(http.Client)
|
client := new(http.Client)
|
||||||
client.Timeout = time.Duration(time.Second * 120)
|
client.Timeout = time.Duration(time.Second * 60)
|
||||||
req.Header.Set("User-Agent", "DWL/1.1.1 (Torrent)")
|
req.Header.Set("User-Agent", "DWL/1.1.1 (Torrent)")
|
||||||
|
|
||||||
resp, err := client.Do(req)
|
resp, err := client.Do(req)
|
||||||
|
|||||||
Reference in New Issue
Block a user