2023-01-27 21:37:20 +00:00
|
|
|
// Copyright (c) Tailscale Inc & AUTHORS
|
|
|
|
// SPDX-License-Identifier: BSD-3-Clause
|
2021-04-02 06:14:13 +00:00
|
|
|
|
|
|
|
package dns
|
|
|
|
|
|
|
|
type noopManager struct{}
|
|
|
|
|
2021-04-07 22:39:26 +00:00
|
|
|
func (m noopManager) SetDNS(OSConfig) error { return nil }
|
|
|
|
func (m noopManager) SupportsSplitDNS() bool { return false }
|
|
|
|
func (m noopManager) Close() error { return nil }
|
|
|
|
func (m noopManager) GetBaseConfig() (OSConfig, error) {
|
|
|
|
return OSConfig{}, ErrGetBaseConfigNotSupported
|
|
|
|
}
|
2021-04-02 06:14:13 +00:00
|
|
|
|
2021-04-12 22:51:37 +00:00
|
|
|
func NewNoopManager() (noopManager, error) {
|
|
|
|
return noopManager{}, nil
|
2021-04-02 06:14:13 +00:00
|
|
|
}
|