control/controlclient: fix signRegisterRequest log suppression check on Windows

Fixes #1774

Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
Brad Fitzpatrick 2021-04-22 11:59:03 -07:00
parent 2d786821f6
commit 3411bb959a

View File

@ -413,7 +413,7 @@ func (c *Direct) doLogin(ctx context.Context, opt loginOpt) (mustRegen bool, new
// Don't log the common error types. Signatures are not usually enabled, // Don't log the common error types. Signatures are not usually enabled,
// so these are expected. // so these are expected.
if err != errCertificateNotConfigured && err != errNoCertStore { if !errors.Is(err, errCertificateNotConfigured) && !errors.Is(err, errNoCertStore) {
c.logf("RegisterReq sign error: %v", err) c.logf("RegisterReq sign error: %v", err)
} }
} }