mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-09-17 15:47:14 +00:00
Update deps and simplify parsing
Bump frontend and Go dependencies, then modernize a few hot paths with newer Go string/range helpers. Also widen the client form quota/limit fields to improve the layout.
This commit is contained in:
@@ -201,7 +201,7 @@ func peerFields(t *testing.T, conf string) []string {
|
||||
t.Fatalf("config has no [Peer] block:\n%s", conf)
|
||||
}
|
||||
var got []string
|
||||
for _, line := range strings.Split(conf[idx:], "\n") {
|
||||
for line := range strings.SplitSeq(conf[idx:], "\n") {
|
||||
key := strings.TrimSpace(strings.SplitN(line, "=", 2)[0])
|
||||
if slices.Contains(peerFieldOrder, key) {
|
||||
got = append(got, key)
|
||||
|
||||
Reference in New Issue
Block a user