MCPcopy Create free account
hub / github.com/1Panel-dev/1Panel / shouldMigrateOpenclawHTTPSUpgrade

Function shouldMigrateOpenclawHTTPSUpgrade

agent/app/service/agents_utils.go:399–404  ·  view source on GitHub ↗
(install *model.AppInstall, fromVersion, toVersion string)

Source from the content-addressed store, hash-verified

397}
398
399func shouldMigrateOpenclawHTTPSUpgrade(install *model.AppInstall, fromVersion, toVersion string) bool {
400 if install == nil || install.App.Key != constant.AppOpenclaw {
401 return false
402 }
403 return isOpenclawLegacyHTTPVersion(fromVersion) && isOpenclawHTTPSWindowVersion(toVersion)
404}
405
406func shouldMigrateOpenclawHTTPUpgrade(install *model.AppInstall, fromVersion, toVersion string) bool {
407 if install == nil || install.App.Key != constant.AppOpenclaw {

Calls 2

Tested by

no test coverage detected