mirror of
https://github.com/tailscale/tailscale.git
synced 2024-12-05 07:55:36 +00:00
ipn/ipnlocal: return error on missing --unattended on CLI up on Windows
Maybe not the best long-term fix, but better than letting the user start the server for a millisecond just to have it all torn down as their CLI command finishes running. Updates #7055 Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
parent
cab2b2b59e
commit
1502f81974
@ -2498,6 +2498,9 @@ func (b *LocalBackend) checkPrefsLocked(p *ipn.Prefs) error {
|
|||||||
if err := b.checkExitNodePrefsLocked(p); err != nil {
|
if err := b.checkExitNodePrefsLocked(p); err != nil {
|
||||||
errs = append(errs, err)
|
errs = append(errs, err)
|
||||||
}
|
}
|
||||||
|
if runtime.GOOS == "windows" && p.WantRunning && !p.ForceDaemon && len(b.notifyWatchers) == 0 {
|
||||||
|
errs = append(errs, errors.New("Use 'tailscale up --unattended' on Windows without GUI"))
|
||||||
|
}
|
||||||
return multierr.New(errs...)
|
return multierr.New(errs...)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user