mirror of
https://github.com/tailscale/tailscale.git
synced 2025-04-19 05:02:34 +00:00
net/dns: getting base DNS config is not supported on macOS
Instead of returning a custom error, use ErrGetBaseConfigNotSupported that seems to be intended for this use case. This fixes DNS resolution on macOS clients compiled from source. Signed-off-by: Anton Tolchanov <anton@tailscale.com>
This commit is contained in:
parent
193afe19cb
commit
e25ab75795
@ -6,7 +6,6 @@ package dns
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"errors"
|
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"go4.org/mem"
|
"go4.org/mem"
|
||||||
@ -85,7 +84,7 @@ func (c *darwinConfigurator) SetDNS(cfg OSConfig) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (c *darwinConfigurator) GetBaseConfig() (OSConfig, error) {
|
func (c *darwinConfigurator) GetBaseConfig() (OSConfig, error) {
|
||||||
return OSConfig{}, errors.New("[unexpected] unreachable")
|
return OSConfig{}, ErrGetBaseConfigNotSupported
|
||||||
}
|
}
|
||||||
|
|
||||||
const macResolverFileHeader = "# Added by tailscaled\n"
|
const macResolverFileHeader = "# Added by tailscaled\n"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user