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