dsnopek / anki-sync-server

A personal Anki sync server (so you can sync against your own server rather than AnkiWeb)
GNU Affero General Public License v3.0
744 stars 95 forks source link

Reject desktop clients older than 2.0.27 #64

Open tsudoko opened 7 years ago

tsudoko commented 7 years ago

Since merging #28, AnkiServer uses a backwards-incompatible version of the sync protocol. To prevent confusing (or silent) errors, the server should just disallow connections from older clients.

As an extra, the server compares the version correctly (2.1.0 > 2.0.41) and no longer assumes that an unknown client uses the pre-2.0.13 protocol, which is now wrong in most cases, as can be seen in #63.

Fixes #60.