refactor(jafar): remove unnecessary dep on netx (#497)

This commit is contained in:
Simone Basso
2021-09-09 18:01:20 +02:00
committed by GitHub
parent 1d79d70b43
commit b5826a0c44
4 changed files with 13 additions and 9 deletions
+1 -3
View File
@@ -9,8 +9,6 @@ import (
"net/http/httputil"
"net/url"
"strings"
"github.com/ooni/probe-cli/v3/internal/engine/netx"
)
const product = "jafar/0.1.0"
@@ -27,7 +25,7 @@ type CensoringProxy struct {
// the Host header of a request. dnsNetwork and dnsAddress are
// settings to configure the upstream, non censored DNS.
func NewCensoringProxy(
keywords []string, uncensored netx.HTTPRoundTripper,
keywords []string, uncensored http.RoundTripper,
) *CensoringProxy {
return &CensoringProxy{keywords: keywords, transport: uncensored}
}