1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-06-13 19:30:43 +00:00

actually run v2ctl

This commit is contained in:
Darien Raymond 2017-11-17 00:51:04 +01:00
parent 6f885e0663
commit e69e6d00cb
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

View File

@ -26,7 +26,16 @@ func jsonToProto(input io.Reader) (*core.Config, error) {
return nil, err
}
defer stdoutReader.Close()
return core.LoadConfig(core.ConfigFormat_Protobuf, stdoutReader)
if err := cmd.Start(); err != nil {
return nil, err
}
config, err := core.LoadConfig(core.ConfigFormat_Protobuf, stdoutReader)
cmd.Wait()
return config, err
}
func init() {