fix(cloud): Don't override the CloudURL on deregistration from the cloud.

This commit is contained in:
Adam Shiervani 2025-02-21 11:13:58 +01:00
parent 58a05f7b94
commit 680ecc5eec
1 changed files with 1 additions and 1 deletions

View File

@ -297,8 +297,8 @@ func rpcDeregisterDevice() error {
// (e.g., wrong cloud token, already deregistered). Regardless of the reason, we can safely remove it.
if resp.StatusCode == http.StatusNotFound || (resp.StatusCode >= 200 && resp.StatusCode < 300) {
config.CloudToken = ""
config.CloudURL = ""
config.GoogleIdentity = ""
if err := SaveConfig(); err != nil {
return fmt.Errorf("failed to save configuration after deregistering: %w", err)
}