From 975fa8f1430d807bc910b441105d685375174f7c Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Mon, 13 Aug 2018 20:27:16 +1000 Subject: [PATCH] cmd/tracker-announce: Provide a http.Client for announces --- cmd/tracker-announce/main.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/tracker-announce/main.go b/cmd/tracker-announce/main.go index 4b5b5890..a0085de7 100644 --- a/cmd/tracker-announce/main.go +++ b/cmd/tracker-announce/main.go @@ -3,6 +3,7 @@ package main import ( "log" "math" + "net/http" "net/url" "strings" "sync" @@ -80,6 +81,7 @@ func announces(uri string, ar tracker.AnnounceRequest) (ret []announceResult) { a := tracker.Announce{ Request: ar, TrackerUrl: uri, + HttpClient: http.DefaultClient, } if u.Scheme == "udp" { a.UdpNetwork = "udp4"