mirror of
https://github.com/mjl-/mox.git
synced 2024-12-27 08:53:48 +03:00
21 lines
438 B
Go
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)
|
|
}
|
|
)
|