1
0
Fork 0
mirror of https://github.com/dani-garcia/vaultwarden.git synced 2025-07-14 00:04:59 +00:00

Support Org Export for v2022.11 clients

Since v2022.9.x the org export uses a different endpoint.
But, since v2022.11.x this endpoint will return a different format.
See: https://github.com/bitwarden/clients/pull/3641 and https://github.com/bitwarden/server/pull/2316

To support both version in the case of users having an older client
either web-vault or cli this PR checks the version and responds using
the correct format. If no version can be determined it will use the new
format as a default.
This commit is contained in:
BlackDex 2022-11-07 17:13:34 +01:00
parent f60a6929a9
commit c9ec389b24
No known key found for this signature in database
GPG key ID: 58C80A2AA6C765E1
4 changed files with 61 additions and 21 deletions

View file

@ -142,6 +142,9 @@ governor = "0.5.0"
# Capture CTRL+C
ctrlc = { version = "3.2.3", features = ["termination"] }
# Check client versions for specific features.
semver = "1.0.14"
# Allow overriding the default memory allocator
# Mainly used for the musl builds, since the default musl malloc is very slow
mimalloc = { version = "0.1.30", features = ["secure"], default-features = false, optional = true }