diff options
| author | Jeroen Wijenbergh <jeroen.wijenbergh@geant.org> | 2025-05-06 12:40:47 +0200 |
|---|---|---|
| committer | Jeroen Wijenbergh <jeroen.wijenbergh@geant.org> | 2025-05-06 12:40:47 +0200 |
| commit | 347b20fc91505584bc9efbeca89590a411b95e79 (patch) | |
| tree | 9dfc600e957c4a881115f8bc8a9cc107a4f0cc9c /internal/config/v2/convert.go | |
| parent | 9c4985368aee638d982f30ea7bc5c7ee71ae3ab3 (diff) | |
All: Run modernize --test --fix
Diffstat (limited to 'internal/config/v2/convert.go')
| -rw-r--r-- | internal/config/v2/convert.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/internal/config/v2/convert.go b/internal/config/v2/convert.go index 59b0d3e..f50ffaf 100644 --- a/internal/config/v2/convert.go +++ b/internal/config/v2/convert.go @@ -5,6 +5,7 @@ import ( "codeberg.org/eduVPN/eduvpn-common/internal/config/v1" "codeberg.org/eduVPN/eduvpn-common/types/server" + "maps" ) func v1AuthTime(st time.Time, ost time.Time) time.Time { @@ -51,9 +52,7 @@ func FromV1(ver1 *v1.V1) *V2 { lc = glc } - for k, v := range cust { - res[k] = v - } + maps.Copy(res, cust) sec := gsrvs.SecureInternetHome // if the home organization ID is filled we have secure internet present if sec.HomeOrganizationID == "" { |
