mirror of https://github.com/tailscale/tailscale/
derp/derphttp: fix derptrack fix
3d7fb6c21d
dropped the explicit called to (*Client).connect when
its (*Client).WatchConnectionChanges got removed+refactored.
This puts it back, but in RunWatchConnectionLoop, before the call
to the (*Client).ServerPublicKey accessor, which is documented to
return the zero value (which is what broke us) on an unconnected
connection.
Plus some tests.
Fixes tailscale/corp#15604
Change-Id: I0f242816f5ee4ad3bb0bf0400abc961dbe9f5fc8
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
pull/9990/head
parent
8dc6de6f58
commit
b2b836214c
Loading…
Reference in New Issue