mirror of https://github.com/v2ray/v2ray-core
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
374 B
20 lines
374 B
// +build json
|
|
|
|
package internet
|
|
|
|
import (
|
|
"v2ray.com/core/common/loader"
|
|
)
|
|
|
|
func CreateAuthenticatorConfig(rawConfig []byte) (string, interface{}, error) {
|
|
config, name, err := configLoader.Load(rawConfig)
|
|
if err != nil {
|
|
return name, nil, err
|
|
}
|
|
return name, config, nil
|
|
}
|
|
|
|
var (
|
|
configLoader = loader.NewJSONConfigLoader(loader.ConfigCreatorCache{}, "type", "")
|
|
)
|