You've already forked openaccounting-server
mirror of
https://github.com/openaccounting/oa-server.git
synced 2025-12-09 00:50:59 +13:00
websockets allow older api version
This commit is contained in:
@@ -324,10 +324,12 @@ func checkVersion(clientVersion string) error {
|
||||
}
|
||||
|
||||
serverVersion, _ := semver.NewVersion(version)
|
||||
compatVersion, _ := semver.NewVersion("0.1.8")
|
||||
|
||||
versionMatch := constraint.Check(serverVersion)
|
||||
compatMatch := constraint.Check(compatVersion)
|
||||
|
||||
if versionMatch != true {
|
||||
if versionMatch == false && compatMatch == false {
|
||||
return errors.New("Invalid version")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user