home: rename config field

This commit is contained in:
Eugene Burkov 2024-11-26 15:12:04 +03:00
parent c7f3822929
commit 0d451621d7
2 changed files with 3 additions and 3 deletions

View File

@ -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.

View File

@ -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 != "":