diff --git a/internal/home/config.go b/internal/home/config.go index c010a414..5242dbc6 100644 --- a/internal/home/config.go +++ b/internal/home/config.go @@ -163,11 +163,11 @@ type configuration struct { // [configmigrate.LastSchemaVersion]. SchemaVersion uint `yaml:"schema_version"` - // UnsafeCustomUpdateIndexURL is the URL to the custom update index. + // UnsafeUseCustomUpdateIndexURL is the URL to the custom update index. // // NOTE: It's only exists for testing purposes and should not be used in // release. - UnsafeCustomUpdateIndexURL bool `yaml:"unsafe_custom_update_index_url,omitempty"` + UnsafeUseCustomUpdateIndexURL bool `yaml:"unsafe_use_custom_update_index_url,omitempty"` } // httpConfig is a block with HTTP configuration params. diff --git a/internal/home/home.go b/internal/home/home.go index 320fb9e1..858e3826 100644 --- a/internal/home/home.go +++ b/internal/home/home.go @@ -717,7 +717,7 @@ func newUpdater( case version.Channel() == version.ChannelRelease: // Only enable custom update URL for development builds. l.DebugContext(ctx, "custom update URL is disabled for release builds") - case !config.UnsafeCustomUpdateIndexURL: + case !config.UnsafeUseCustomUpdateIndexURL: // Go on and use the default URL. l.DebugContext(ctx, "custom update URL is disabled", "env", customURLStr) case customURLStr != "":