diff options
| author | Jeroen Wijenbergh <jeroen.wijenbergh@geant.org> | 2025-08-29 15:00:04 +0200 |
|---|---|---|
| committer | Jeroen Wijenbergh <jeroen.wijenbergh@geant.org> | 2025-08-29 15:02:56 +0200 |
| commit | 003979cb014f16fe4ffad62ce979e55439ec6ea2 (patch) | |
| tree | bdd3cc1fa5b4283df4ca73886457c8adb0b78f91 /internal/config/config.go | |
| parent | 132782f44603dfdc3b1d875d632f786109ee09a2 (diff) | |
Config: Remove v1 conversion
Only used for very old linux client versions
Diffstat (limited to 'internal/config/config.go')
| -rw-r--r-- | internal/config/config.go | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/internal/config/config.go b/internal/config/config.go index 4b939b2..cb26f83 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -9,7 +9,6 @@ import ( "path" "codeberg.org/eduVPN/eduvpn-common/internal/atomicfile" - "codeberg.org/eduVPN/eduvpn-common/internal/config/v1" "codeberg.org/eduVPN/eduvpn-common/internal/config/v2" "codeberg.org/eduVPN/eduvpn-common/internal/discovery" ) @@ -64,20 +63,12 @@ func (c *Config) Load() error { if err = json.Unmarshal(bts, &buf); err != nil { return err } - if buf.V2 != nil { - c.V2 = buf.V2 - return nil - } - if buf.V1 != nil { - c.V2 = v2.FromV1(buf.V1) - } + c.V2 = buf.V2 return nil } // Versioned is the final top-level state file that is written to disk type Versioned struct { - // V1 is the version 1 state file that is no longer used but converted from - V1 *v1.V1 `json:"v1,omitempty"` // V2 is the version 2 state file V2 *v2.V2 `json:"v2,omitempty"` } |
