mirror of
https://github.com/coder/coder.git
synced 2025-07-15 22:20:27 +00:00
fix: nil ptr dereference when removing a license (#12785)
This commit is contained in:
@ -657,7 +657,9 @@ func (api *API) updateEntitlements(ctx context.Context) error {
|
|||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
coordinator = agpltailnet.NewCoordinator(api.Logger)
|
coordinator = agpltailnet.NewCoordinator(api.Logger)
|
||||||
api.derpMesh.SetAddresses([]string{}, false)
|
if api.Options.DeploymentValues.DERP.Server.Enable {
|
||||||
|
api.derpMesh.SetAddresses([]string{}, false)
|
||||||
|
}
|
||||||
api.replicaManager.SetCallback(func() {
|
api.replicaManager.SetCallback(func() {
|
||||||
// If the amount of replicas change, so should our entitlements.
|
// If the amount of replicas change, so should our entitlements.
|
||||||
// This is to display a warning in the UI if the user is unlicensed.
|
// This is to display a warning in the UI if the user is unlicensed.
|
||||||
|
Reference in New Issue
Block a user