2023-01-27 13:37:20 -08:00
|
|
|
// Copyright (c) Tailscale Inc & AUTHORS
|
|
|
|
// SPDX-License-Identifier: BSD-3-Clause
|
2021-04-01 23:14:13 -07:00
|
|
|
|
|
|
|
package dns
|
|
|
|
|
|
|
|
type noopManager struct{}
|
|
|
|
|
2021-04-07 15:39:26 -07: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-01 23:14:13 -07:00
|
|
|
|
2021-04-12 15:51:37 -07:00
|
|
|
func NewNoopManager() (noopManager, error) {
|
|
|
|
return noopManager{}, nil
|
2021-04-01 23:14:13 -07:00
|
|
|
}
|