This commit is contained in:
Christoph
2026-12-03 18:48:02 +01:00
parent d5a74a10ac
commit 141eb838bb
7 changed files with 25 additions and 77 deletions
-11
View File
@@ -2,8 +2,6 @@ package domain
import (
"fmt"
"maps"
"slices"
"strconv"
"strings"
@@ -69,12 +67,3 @@ func ParseAmneziaWGRange(value string, bits int) (uint64, uint64, error) {
}
return lo, hi, nil
}
// ConfigLines is deterministic so saved files and QR codes use the same options.
func (o AmneziaWGOptions) ConfigLines() string {
var result strings.Builder
for _, key := range slices.Sorted(maps.Keys(o)) {
_, _ = fmt.Fprintf(&result, "%s = %s\n", key, o[key])
}
return result.String()
}