1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-06-20 02:21:48 +08:00

namesys/dns: Pluggable lookupTXT field

So we can attach a mock lookup function for testing.
This commit is contained in:
W. Trevor King
2015-05-16 09:33:22 -07:00
parent e4447b3c96
commit 1e6594d087
3 changed files with 17 additions and 3 deletions

View File

@ -56,7 +56,7 @@ The resolver will give:
recursive, _, _ := req.Option("recursive").Bool()
name := req.Arguments()[0]
var resolver namesys.DNSResolver
resolver := namesys.NewDNSResolver()
depth := 1
if recursive {