mirror of
https://github.com/h44z/wg-portal.git
synced 2026-12-05 19:56:06 +01:00
cleanup
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user