mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-22 18:17:52 -05:00
20 lines
374 B
Go
20 lines
374 B
Go
// +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", "")
|
|
)
|