Skip to content

Commit

Permalink
t push
Browse files Browse the repository at this point in the history
Merge branch 'issue/2531' of github.com:ooni/probe-cli into issue/2531
  • Loading branch information
bassosimone committed Sep 14, 2023
2 parents b224287 + 97c9edf commit cabe77e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/netxlite/httpfactory.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ type HTTPTransportOption func(txp *oohttp.Transport)
//
// This factory clones the default github.com/ooni/oohttp transport and
// configures the provided dialer and TLS dialer by setting the .DialContext
// and .DialTLSContext fields of the transport. We'll wrap the provided
// and .DialTLSContext fields of the transport. We also wrap the provided
// dialers to address https://github.com/ooni/probe/issues/1609.
//
// Apart from that, the only non-default options set by this factory are these:
Expand Down Expand Up @@ -73,6 +73,7 @@ func NewHTTPTransportWithOptions(logger model.Logger,
func HTTPTransportOptionProxyURL(proxyURL *url.URL) HTTPTransportOption {
return func(txp *oohttp.Transport) {
txp.Proxy = func(r *oohttp.Request) (*url.URL, error) {
// "If Proxy is nil or returns a nil *URL, no proxy is used."
return proxyURL, nil
}
}
Expand Down

0 comments on commit cabe77e

Please sign in to comment.