tailscale/derp/derphttp
Brad Fitzpatrick b2b836214c 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>
2023-11-04 11:48:40 -07:00
..
derphttp_client.go derp/derphttp: fix race in mesh watcher 2023-10-31 19:24:25 +00:00
derphttp_server.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
derphttp_test.go derp/derphttp: fix derptrack fix 2023-11-04 11:48:40 -07:00
mesh_client.go derp/derphttp: fix derptrack fix 2023-11-04 11:48:40 -07:00
websocket.go net/wsconn: accept a remote addr string and plumb it through 2023-08-29 16:57:16 -07:00