mirror of https://github.com/v2ray/v2ray-core
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