mirror of
https://github.com/mjl-/mox.git
synced 2025-01-09 23:08:49 +03:00
23 lines
473 B
Go
23 lines
473 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 (
|
||
|
testHookHostsPath = "/etc/hosts"
|
||
|
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)
|
||
|
}
|
||
|
)
|