mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-01-04 16:37:12 -05:00
rename server
This commit is contained in:
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
Block a user