1
0
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:
Darien Raymond 2016-09-19 23:54:48 +02:00
parent 9ade07db03
commit fbdb1e09d7
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

View File

@ -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)
}