refactor(oohelper): use netxlite rather than netx (#805)
The oohelper does not need to use netx and it's enough to use netxlite, hence let us apply this refactor. The original code used DoT but the explanatory comment said we were using DoT because of unclear issues inside GitHub actions. We are now using DoH and this is fine as well. The comment implied that any encrypted transport would do. See https://github.com/ooni/probe/issues/2121
This commit is contained in:
@@ -332,6 +332,11 @@ func NewHTTPTransportStdlib(logger model.DebugLogger) model.HTTPTransport {
|
||||
// standard library for TLS and DNS resolutions.
|
||||
func NewHTTPClientStdlib(logger model.DebugLogger) model.HTTPClient {
|
||||
txp := NewHTTPTransportStdlib(logger)
|
||||
return NewHTTPClient(txp)
|
||||
}
|
||||
|
||||
// NewHTTPClient creates a new, wrapped HTTPClient using the given transport.
|
||||
func NewHTTPClient(txp model.HTTPTransport) model.HTTPClient {
|
||||
return WrapHTTPClient(&http.Client{Transport: txp})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user