diff --git a/server/torr/utils/torrent.go b/server/torr/utils/torrent.go index d8ac5ca..1e50d3d 100644 --- a/server/torr/utils/torrent.go +++ b/server/torr/utils/torrent.go @@ -63,6 +63,7 @@ func loadNewTracker() { } resp, err := http.Get("https://raw.githubusercontent.com/ngosang/trackerslist/master/trackers_best_ip.txt") if err == nil { + defer resp.Body.Close() buf, err := io.ReadAll(resp.Body) if err == nil { arr := strings.Split(string(buf), "\n")