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"