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