Fix incorrect use of sort.Slice

This commit is contained in:
XYenon
2023-04-30 16:58:07 +08:00
committed by GitHub
parent d08b82b71c
commit 08f4384579
2 changed files with 2 additions and 2 deletions

View File

@@ -134,7 +134,7 @@ func getProxies(server *Server, router adapter.Router) func(w http.ResponseWrite
defaultTag = allProxies[0]
}
sort.Slice(allProxies, func(i, j int) bool {
sort.SliceStable(allProxies, func(i, j int) bool {
return allProxies[i] == defaultTag
})