mox/vendor/github.com/mjl-/adns/hook.go
2024-03-08 15:31:54 +01:00

21 lines
438 B
Go

// Copyright 2015 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package adns
import (
"context"
"net"
)
var (
testHookLookupIP = func(
ctx context.Context,
fn func(context.Context, string, string) ([]net.IPAddr, Result, error),
network string,
host string,
) ([]net.IPAddr, Result, error) {
return fn(ctx, network, host)
}
)