diff options
Diffstat (limited to 'net/dns/noop.go')
| -rw-r--r-- | net/dns/noop.go | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/net/dns/noop.go b/net/dns/noop.go new file mode 100644 index 000000000..35c07a232 --- /dev/null +++ b/net/dns/noop.go @@ -0,0 +1,17 @@ +// 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. + +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{} +} |
