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