cleanup(netxlite): drop the DefaultDialer legacy name (#796)
Part of https://github.com/ooni/probe/issues/2121
This commit is contained in:
parent
c6b3889a33
commit
07c0b08505
5 changed files with 37 additions and 7 deletions
|
|
@ -14,6 +14,14 @@ import (
|
|||
"github.com/ooni/probe-cli/v3/internal/model"
|
||||
)
|
||||
|
||||
// NewDialerWithStdlibResolver is equivalent to creating a system resolver
|
||||
// using NewResolverStdlib and then a dialer using NewDialerWithResolver where
|
||||
// the resolver argument is the previously created resolver.
|
||||
func NewDialerWithStdlibResolver(dl model.DebugLogger) model.Dialer {
|
||||
reso := NewResolverStdlib(dl)
|
||||
return NewDialerWithResolver(dl, reso)
|
||||
}
|
||||
|
||||
// NewDialerWithResolver is equivalent to calling WrapDialer with
|
||||
// the dialer argument being equal to &DialerSystem{}.
|
||||
func NewDialerWithResolver(dl model.DebugLogger, r model.Resolver, w ...model.DialerWrapper) model.Dialer {
|
||||
|
|
|
|||
Loading…
Reference in a new issue