mirror of
https://github.com/yusing/godoxy.git
synced 2025-06-09 13:02:33 +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
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
if !checkVersion(string(version), pkg.GetVersion()) {
|
versionStr := string(version)
|
||||||
return gperr.Errorf("agent version mismatch: server: %s, agent: %s", pkg.GetVersion(), 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
|
// get agent name
|
||||||
|
|
Loading…
Add table
Reference in a new issue