From b81423c1015a6793d2812c258e1d375b26de02b4 Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Mon, 5 Dec 2022 17:50:39 +1100 Subject: [PATCH] Rename tracker/http package --- tracker/http/client.go | 2 +- tracker/http/http.go | 2 +- tracker/http/http_test.go | 2 +- tracker/http/peer.go | 2 +- tracker/http/protocol.go | 2 +- wstracker.go | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tracker/http/client.go b/tracker/http/client.go index 7b2a32d1..1716b44c 100644 --- a/tracker/http/client.go +++ b/tracker/http/client.go @@ -1,4 +1,4 @@ -package http +package httpTracker import ( "context" diff --git a/tracker/http/http.go b/tracker/http/http.go index 6a9e0ffa..9aa53797 100644 --- a/tracker/http/http.go +++ b/tracker/http/http.go @@ -1,4 +1,4 @@ -package http +package httpTracker import ( "bytes" diff --git a/tracker/http/http_test.go b/tracker/http/http_test.go index 908b1412..329aed72 100644 --- a/tracker/http/http_test.go +++ b/tracker/http/http_test.go @@ -1,4 +1,4 @@ -package http +package httpTracker import ( "net/url" diff --git a/tracker/http/peer.go b/tracker/http/peer.go index f715e20b..076a88c6 100644 --- a/tracker/http/peer.go +++ b/tracker/http/peer.go @@ -1,4 +1,4 @@ -package http +package httpTracker import ( "fmt" diff --git a/tracker/http/protocol.go b/tracker/http/protocol.go index aa6d78d4..5ce9fa90 100644 --- a/tracker/http/protocol.go +++ b/tracker/http/protocol.go @@ -1,4 +1,4 @@ -package http +package httpTracker import ( "fmt" diff --git a/wstracker.go b/wstracker.go index 431863a0..9b1a9201 100644 --- a/wstracker.go +++ b/wstracker.go @@ -41,7 +41,7 @@ type websocketTrackers struct { OnConn func(datachannel.ReadWriteCloser, webtorrent.DataChannelContext) mu sync.Mutex clients map[string]*refCountedWebtorrentTrackerClient - Proxy http.ProxyFunc + Proxy httpTracker.ProxyFunc DialContext func(ctx context.Context, network, addr string) (net.Conn, error) } -- 2.44.0