net/dns: add GetBaseConfig to OSConfigurator interface.

Part of #953, required to make split DNS work on more basic
platforms.

Signed-off-by: David Anderson <danderson@tailscale.com>
This commit is contained in:
David Anderson
2021-04-07 00:31:31 -07:00
committed by Dave Anderson
parent fe9cd61d71
commit 68f76e9aa1
9 changed files with 58 additions and 3 deletions

View File

@@ -163,6 +163,11 @@ func (m directManager) SupportsSplitDNS() bool {
return false
}
func (m directManager) GetBaseConfig() (OSConfig, error) {
// TODO
return OSConfig{}, nil
}
func (m directManager) Close() error {
if _, err := os.Stat(backupConf); err != nil {
// If the backup file does not exist, then Up never ran successfully.