mirror of https://github.com/v2ray/v2ray-core
rename server
parent
dff0230034
commit
16ce077d58
|
@ -64,12 +64,12 @@ func startV2Ray() (core.Server, error) {
|
||||||
return nil, errors.Base(err).Message("V2Ray: Failed to read config file: ", configFile)
|
return nil, errors.Base(err).Message("V2Ray: Failed to read config file: ", configFile)
|
||||||
}
|
}
|
||||||
|
|
||||||
vPoint, err := core.New(config)
|
server, err := core.New(config)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, errors.Base(err).Message("V2Ray: Failed to create initialize.")
|
return nil, errors.Base(err).Message("V2Ray: Failed to create initialize.")
|
||||||
}
|
}
|
||||||
|
|
||||||
return vPoint, nil
|
return server, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|
Loading…
Reference in New Issue