mirror of
https://github.com/wyx2685/V2bX.git
synced 2026-02-04 04:30:08 +00:00
fix bugs
This commit is contained in:
@@ -16,7 +16,7 @@ func NewCore(c *conf.CoreConfig) (Core, error) {
|
||||
if types := strings.Split(c.Type, " "); len(types) > 1 {
|
||||
var cs []Core
|
||||
for _, t := range types {
|
||||
f, ok := cores[strings.ToLower(c.Type)]
|
||||
f, ok := cores[strings.ToLower(t)]
|
||||
if !ok {
|
||||
return nil, errors.New("unknown core type: " + t)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user