diff options
| author | Brad Fitzpatrick <bradfitz@tailscale.com> | 2020-11-11 11:52:35 -0800 |
|---|---|---|
| committer | Brad Fitzpatrick <bradfitz@tailscale.com> | 2020-11-11 11:52:35 -0800 |
| commit | 97e82c6cc00a55148227c2d4443f4e86c02ef013 (patch) | |
| tree | 2a15d66a034b745bb7a4080147fd97331b502191 /cmd | |
| parent | 19b0cfe89e4f64b11ba94ba4894c3a1a595e830f (diff) | |
| download | tailscale-97e82c6cc00a55148227c2d4443f4e86c02ef013.tar.xz tailscale-97e82c6cc00a55148227c2d4443f4e86c02ef013.zip | |
net/netcheck: remove unused DNSCache from netcheck
It's easy to add back later if/when the TODO is implemented.
Diffstat (limited to 'cmd')
| -rw-r--r-- | cmd/tailscale/cli/netcheck.go | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/cmd/tailscale/cli/netcheck.go b/cmd/tailscale/cli/netcheck.go index 1ad30dd02..04d3ab0ab 100644 --- a/cmd/tailscale/cli/netcheck.go +++ b/cmd/tailscale/cli/netcheck.go @@ -17,7 +17,6 @@ import ( "github.com/peterbourgon/ff/v2/ffcli" "tailscale.com/derp/derpmap" - "tailscale.com/net/dnscache" "tailscale.com/net/netcheck" "tailscale.com/tailcfg" "tailscale.com/types/logger" @@ -44,9 +43,7 @@ var netcheckArgs struct { } func runNetcheck(ctx context.Context, args []string) error { - c := &netcheck.Client{ - DNSCache: dnscache.Get(), - } + c := &netcheck.Client{} if netcheckArgs.verbose { c.Logf = logger.WithPrefix(log.Printf, "netcheck: ") c.Verbose = true |
