diff options
| author | Irbe Krumina <irbe@tailscale.com> | 2024-11-13 17:29:22 +0000 |
|---|---|---|
| committer | Irbe Krumina <irbe@tailscale.com> | 2024-11-13 17:50:45 +0000 |
| commit | d8dda0048e355443193173a30fb330668a4858f9 (patch) | |
| tree | 03f86fde23c93b61de13cb74b2d793c46bd237b1 /control | |
| parent | e38522c081ff48add7db73077e7be18f38ea709d (diff) | |
| download | tailscale-irbekrm/debug.tar.xz tailscale-irbekrm/debug.zip | |
Signed-off-by: Irbe Krumina <irbe@tailscale.com>
Diffstat (limited to 'control')
| -rw-r--r-- | control/controlclient/direct.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/control/controlclient/direct.go b/control/controlclient/direct.go index 9cbd0e14e..de4542804 100644 --- a/control/controlclient/direct.go +++ b/control/controlclient/direct.go @@ -564,6 +564,12 @@ func (c *Direct) doLogin(ctx context.Context, opt loginOpt) (mustRegen bool, new case opt.URL != "": // Nothing. case regen || persist.PrivateNodeKey.IsZero(): + if regen { + c.logf("TEST: need to regenerate") + } else { + c.logf("TEST: private node key is zero, persist is %v", persist) + c.logf("TEST: private node key is zero, persist is %v", persist) + } c.logf("Generating a new nodekey.") persist.OldPrivateNodeKey = persist.PrivateNodeKey tryingNewKey = key.NewNode() |
