Fix incorrect use of sort.Slice

This commit is contained in:
XYenon authored and 世界 committed 2023-05-19 15:40:48 +08:00
1 parent d3a67cb5ae
commit a0d8e374fb
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -133,7 +133,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
})