fix: avoid derp-related panic during wsproxy registration (backport release/2.30) by rowansmithau · Pull Request #22343 · coder/coder

@deansheather @rowansmithau

If the primary had DERP disabled, workspace proxy registrations would
fail with a panic, as the registration endpoint would attempt to access
the mesh key from the nil DerpServer.

Changes the endpoint to query the database for the key.

deansheather