mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-21 17:46:58 -05:00
remove incorrect check on config name
This commit is contained in:
parent
9ade07db03
commit
fbdb1e09d7
@ -3,14 +3,10 @@
|
||||
package internet
|
||||
|
||||
import (
|
||||
"v2ray.com/core/common"
|
||||
"v2ray.com/core/common/loader"
|
||||
)
|
||||
|
||||
func RegisterAuthenticatorConfig(name string, configCreator loader.ConfigCreator) error {
|
||||
if _, found := authenticatorCache[name]; found {
|
||||
return common.ErrDuplicatedName
|
||||
}
|
||||
return configCache.RegisterCreator(name, configCreator)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user