net/dns: put noop.go back, limit with build tags for staticcheck.
Signed-off-by: David Anderson <danderson@tailscale.com>
This commit is contained in:
19
net/dns/noop.go
Normal file
19
net/dns/noop.go
Normal file
@ -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{}
|
||||||
|
}
|
Reference in New Issue
Block a user