cmd/tailscaled: fix state path for windows svc

Signed-off-by: James Tucker <james@tailscale.com>
This commit is contained in:
James Tucker
2022-05-26 15:06:46 -07:00
committed by James Tucker
parent c163b2a3f1
commit 3f686688a6
2 changed files with 10 additions and 7 deletions

View File

@@ -260,7 +260,7 @@ func startIPNServer(ctx context.Context, logid string) error {
linkMon, err := monitor.New(logf)
if err != nil {
return err
return fmt.Errorf("monitor: %w", err)
}
dialer := new(tsdial.Dialer)
@@ -367,7 +367,7 @@ func startIPNServer(ctx context.Context, logid string) error {
}
store, err := store.New(logf, statePathOrDefault())
if err != nil {
return err
return fmt.Errorf("store: %w", err)
}
ln, _, err := safesocket.Listen(args.socketpath, safesocket.WindowsLocalPort)