Skip to content

Commit

Permalink
fixed imports
Browse files Browse the repository at this point in the history
  • Loading branch information
myleshorton committed Oct 31, 2023
1 parent 5106c05 commit 7cabe4a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions http_proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ import (
"github.com/getlantern/http-proxy-lantern/v2/httpsupgrade"
"github.com/getlantern/http-proxy-lantern/v2/instrument"
"github.com/getlantern/http-proxy-lantern/v2/lampshade"
lanternlisteners "github.com/getlantern/http-proxy-lantern/v2/listeners"
"github.com/getlantern/http-proxy-lantern/v2/mimic"
"github.com/getlantern/http-proxy-lantern/v2/obfs4listener"
"github.com/getlantern/http-proxy-lantern/v2/ping"
Expand Down Expand Up @@ -275,7 +274,7 @@ func (p *Proxy) ListenAndServe(ctx context.Context) error {

bwReporting := p.configureBandwidthReporting()
// Throttle connections when signaled
srv.AddListenerWrappers(lanternlisteners.NewBitrateListener, bwReporting.wrapper)
srv.AddListenerWrappers(listeners.NewBitrateListener, bwReporting.wrapper)

allListeners := make([]net.Listener, 0)
listenerProtocols := make([]string, 0)
Expand All @@ -290,7 +289,7 @@ func (p *Proxy) ListenAndServe(ctx context.Context) error {
listenerProtocols = append(listenerProtocols, proto)
// Although we include blacklist functionality, it's currently only used to
// track potential blacklisting ad doesn't actually blacklist anyone.
allListeners = append(allListeners, lanternlisteners.NewAllowingListener(l, blacklist.OnConnect))
allListeners = append(allListeners, listeners.NewAllowingListener(l, blacklist.OnConnect))
return nil
}

Expand Down

0 comments on commit 7cabe4a

Please sign in to comment.