mirror of
https://github.com/tailscale/tailscale.git
synced 2025-01-08 09:07:44 +00:00
controlclient: log server key and URL
Turns out we never reliably log the control plane URL a client connects to. Do it here, and include the server public key, which might inadvertently tell us something interesting some day. Signed-off-by: David Crawshaw <crawshaw@tailscale.com>
This commit is contained in:
parent
d6f4b5f5cb
commit
54199d9d58
@ -354,6 +354,7 @@ func (c *Direct) doLogin(ctx context.Context, opt loginOpt) (mustRegen bool, new
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return regen, opt.URL, err
|
return regen, opt.URL, err
|
||||||
}
|
}
|
||||||
|
c.logf("control server key %s from %s", serverKey.HexString(), c.serverURL)
|
||||||
|
|
||||||
c.mu.Lock()
|
c.mu.Lock()
|
||||||
c.serverKey = serverKey
|
c.serverKey = serverKey
|
||||||
|
Loading…
x
Reference in New Issue
Block a user