chore: chore: update dependencies
Build / Build (push) Has been cancelled

This commit is contained in:
nadoo committed 2026-07-02 20:33:37 +08:00
1 parent 38b34030bc
commit 579b427e9d
10 files changed
+47 -41

No files matched your search

+3 -3
View File
@@ -3,7 +3,7 @@ package proxy
import (
"errors"
"net"
"sort"
"slices"
"strings"
)
@@ -44,7 +44,7 @@ func ServerFromURL(s string, proxy Proxy) (Server, error) {
s = "mixed://" + s
}
scheme := s[:strings.Index(s, ":")]
scheme, _, _ := strings.Cut(s, ":")
c, ok := serverCreators[strings.ToLower(scheme)]
if ok {
return c(s, proxy)
@@ -59,6 +59,6 @@ func ServerSchemes() string {
for name := range serverCreators {
s = append(s, name)
}
sort.Strings(s)
slices.Sort(s)
return strings.Join(s, " ")
}