home: rename config field
This commit is contained in:
parent
c7f3822929
commit
0d451621d7
|
@ -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.
|
||||
|
|
|
@ -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 != "":
|
||||
|
|
Loading…
Reference in New Issue