diff options
| author | Joakim Hulthe <joakim@hulthe.net> | 2024-02-27 16:21:36 +0100 |
|---|---|---|
| committer | Joakim Hulthe <joakim@hulthe.net> | 2024-02-28 11:13:51 +0100 |
| commit | 1fd4c4ff4ee71a44b42ff5e475c0296f02ab641c (patch) | |
| tree | 04b869ab43c150fee73da388ac8dc3d8855a74ee | |
| parent | 9f090e3094d871aff49e21e6e017498f3a9dc922 (diff) | |
| download | mullvadvpn-1fd4c4ff4ee71a44b42ff5e475c0296f02ab641c.tar.xz mullvadvpn-1fd4c4ff4ee71a44b42ff5e475c0296f02ab641c.zip | |
Fix migrations/v6.rs docs
| -rw-r--r-- | mullvad-daemon/src/migrations/v6.rs | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/mullvad-daemon/src/migrations/v6.rs b/mullvad-daemon/src/migrations/v6.rs index ff71dbce63..076dc1b71f 100644 --- a/mullvad-daemon/src/migrations/v6.rs +++ b/mullvad-daemon/src/migrations/v6.rs @@ -16,18 +16,15 @@ pub enum QuantumResistantState { // ====================================================== -/// This is an open ended migration. There is no v7 yet! -/// The migrations performed by this function are still backwards compatible. -/// The JSON coming out of this migration can be read by any v6 compatible daemon. -/// -/// When further migrations are needed, add them here and if they are not backwards -/// compatible then create v7 and "close" this migration for further modification. +/// This is a closed migration. /// /// The `use_pq_safe_psk` tunnel option is replaced by `quantum_resistant`, which /// is optional. `false` is mapped to `None`. `true` is mapped to `Some(true)`. /// /// Migrate WireGuard over TCP port setting away from Only(443) (to auto), /// since it's no longer a valid port. +/// +/// Migrate location constraints from `GeographicLocationConstraint` to `LocationConstraint`. pub fn migrate(settings: &mut serde_json::Value) -> Result<()> { if !version_matches(settings) { return Ok(()); |
