mirror of
https://github.com/yusing/godoxy.git
synced 2025-06-09 04:52:35 +02:00
skip version check for dev versions
This commit is contained in:
parent
2cc152d0ab
commit
2281c8ac39
1 changed files with 4 additions and 2 deletions
|
@ -111,8 +111,10 @@ func (cfg *AgentConfig) StartWithCerts(parent task.Parent, ca, crt, key []byte)
|
|||
return err
|
||||
}
|
||||
|
||||
if !checkVersion(string(version), pkg.GetVersion()) {
|
||||
return gperr.Errorf("agent version mismatch: server: %s, agent: %s", pkg.GetVersion(), string(version))
|
||||
versionStr := string(version)
|
||||
// skip version check for dev versions
|
||||
if strings.HasPrefix(versionStr, "v") && !checkVersion(versionStr, pkg.GetVersion()) {
|
||||
return gperr.Errorf("agent version mismatch: server: %s, agent: %s", pkg.GetVersion(), versionStr)
|
||||
}
|
||||
|
||||
// get agent name
|
||||
|
|
Loading…
Add table
Reference in a new issue