mirror of
https://github.com/bestnite/sub2clash.git
synced 2025-07-05 04:12:34 +08:00
⚡️ Improve
This commit is contained in:
@ -111,7 +111,7 @@ func ParseQuery(c *gin.Context) (SubValidator, error) {
|
||||
},
|
||||
)
|
||||
}
|
||||
// 校验 Rule-Provider 是否有重名
|
||||
|
||||
names := make(map[string]bool)
|
||||
for _, ruleProvider := range query.RuleProviders {
|
||||
if _, ok := names[ruleProvider.Name]; ok {
|
||||
|
Reference in New Issue
Block a user