Fix: should keep the original order of proxy groups (#284)

This commit is contained in:
Comzyh
2019-08-28 23:44:32 +08:00
committed by Dreamacro
parent e34090c39a
commit 0d51877fcd
2 changed files with 16 additions and 9 deletions

View File

@ -55,9 +55,6 @@ func proxyGroupsDagSort(groupsConfig []map[string]interface{}) error {
// Step 1.1 build dependency graph
for idx, mapping := range groupsConfig {
// record original order in config file.
// this field can be used determinate the display order in FrontEnd.
mapping["configIdx"] = idx
groupName, existName := mapping["name"].(string)
if !existName {
return fmt.Errorf("ProxyGroup %d: missing name", idx)