some more plan9 tweaks; notably DNS one

Change-Id: Ib14f2663d0f36623a42ce95574be61f0b9df1b14
This commit is contained in:
Brad Fitzpatrick 2025-03-22 11:34:59 -07:00
parent 9a0302a454
commit 0d67d7835a
2 changed files with 2 additions and 2 deletions

View File

@ -627,7 +627,7 @@ func (opts Options) New() *Policy {
conf.IncludeProcSequence = true
}
if envknob.NoLogsNoSupport() || testenv.InTest() {
if envknob.NoLogsNoSupport() || testenv.InTest() || runtime.GOOS == "plan9" {
opts.Logf("You have disabled logging. Tailscale will not be able to provide support.")
conf.HTTPC = &http.Client{Transport: noopPretendSuccessTransport{}}
} else {

View File

@ -284,7 +284,7 @@ func (m *Manager) compileConfig(cfg Config) (rcfg resolver.Config, ocfg OSConfig
// Deal with trivial configs first.
switch {
case !cfg.needsOSResolver():
case !cfg.needsOSResolver() || runtime.GOOS == "plan9":
// Set search domains, but nothing else. This also covers the
// case where cfg is entirely zero, in which case these
// configs clear all Tailscale DNS settings.