From 0ca04f1e01a452db909260a36f2ef1d4625cf21a Mon Sep 17 00:00:00 2001 From: David Anderson Date: Thu, 1 Apr 2021 23:14:13 -0700 Subject: [PATCH] net/dns: put noop.go back, limit with build tags for staticcheck. Signed-off-by: David Anderson --- net/dns/noop.go | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 net/dns/noop.go diff --git a/net/dns/noop.go b/net/dns/noop.go new file mode 100644 index 000000000..1cdffefc3 --- /dev/null +++ b/net/dns/noop.go @@ -0,0 +1,19 @@ +// Copyright (c) 2020 Tailscale Inc & AUTHORS All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// +build !linux,!freebsd,!openbsd,!windows + +package dns + +type noopManager struct{} + +// Up implements managerImpl. +func (m noopManager) Up(Config) error { return nil } + +// Down implements managerImpl. +func (m noopManager) Down() error { return nil } + +func newNoopManager(mconfig ManagerConfig) managerImpl { + return noopManager{} +}