chore: fix some comments
Signed-off-by: yuhangcangqian <cuibuwei@qq.com>
This commit is contained in:
parent
aab6769fa2
commit
ddb5afd7a3
|
@ -30,7 +30,7 @@ func substRootDirFS(t testing.TB, fsys fs.FS) {
|
||||||
// RunCmdFunc is the signature of aghos.RunCommand function.
|
// RunCmdFunc is the signature of aghos.RunCommand function.
|
||||||
type RunCmdFunc func(cmd string, args ...string) (code int, out []byte, err error)
|
type RunCmdFunc func(cmd string, args ...string) (code int, out []byte, err error)
|
||||||
|
|
||||||
// substShell replaces the the aghos.RunCommand function used throughout the
|
// substShell replaces the aghos.RunCommand function used throughout the
|
||||||
// package with rc for tests ran under t.
|
// package with rc for tests ran under t.
|
||||||
func substShell(t testing.TB, rc RunCmdFunc) {
|
func substShell(t testing.TB, rc RunCmdFunc) {
|
||||||
t.Helper()
|
t.Helper()
|
||||||
|
@ -70,7 +70,7 @@ func (s mapShell) RunCmd(cmd string, args ...string) (code int, out []byte, err
|
||||||
// ifaceAddrsFunc is the signature of net.InterfaceAddrs function.
|
// ifaceAddrsFunc is the signature of net.InterfaceAddrs function.
|
||||||
type ifaceAddrsFunc func() (ifaces []net.Addr, err error)
|
type ifaceAddrsFunc func() (ifaces []net.Addr, err error)
|
||||||
|
|
||||||
// substNetInterfaceAddrs replaces the the net.InterfaceAddrs function used
|
// substNetInterfaceAddrs replaces the net.InterfaceAddrs function used
|
||||||
// throughout the package with f for tests ran under t.
|
// throughout the package with f for tests ran under t.
|
||||||
func substNetInterfaceAddrs(t *testing.T, f ifaceAddrsFunc) {
|
func substNetInterfaceAddrs(t *testing.T, f ifaceAddrsFunc) {
|
||||||
t.Helper()
|
t.Helper()
|
||||||
|
|
|
@ -23,7 +23,7 @@ var testdata fs.FS = os.DirFS("./testdata")
|
||||||
// RunCmdFunc is the signature of aghos.RunCommand function.
|
// RunCmdFunc is the signature of aghos.RunCommand function.
|
||||||
type RunCmdFunc func(cmd string, args ...string) (code int, out []byte, err error)
|
type RunCmdFunc func(cmd string, args ...string) (code int, out []byte, err error)
|
||||||
|
|
||||||
// substShell replaces the the aghos.RunCommand function used throughout the
|
// substShell replaces the aghos.RunCommand function used throughout the
|
||||||
// package with rc for tests ran under t.
|
// package with rc for tests ran under t.
|
||||||
func substShell(t testing.TB, rc RunCmdFunc) {
|
func substShell(t testing.TB, rc RunCmdFunc) {
|
||||||
t.Helper()
|
t.Helper()
|
||||||
|
|
|
@ -214,7 +214,7 @@ type dnsConfig struct {
|
||||||
|
|
||||||
// PrivateRDNSResolvers is the slice of addresses to be used as upstreams
|
// PrivateRDNSResolvers is the slice of addresses to be used as upstreams
|
||||||
// for private requests. It's only used for PTR, SOA, and NS queries,
|
// for private requests. It's only used for PTR, SOA, and NS queries,
|
||||||
// containing an ARPA subdomain, came from the the client with private
|
// containing an ARPA subdomain, came from the client with private
|
||||||
// address. The address considered private according to PrivateNets.
|
// address. The address considered private according to PrivateNets.
|
||||||
//
|
//
|
||||||
// If empty, the OS-provided resolvers are used for private requests.
|
// If empty, the OS-provided resolvers are used for private requests.
|
||||||
|
|
Loading…
Reference in New Issue