mirror of
https://github.com/v2fly/v2ray-core.git
synced 2026-01-28 20:05:48 -05:00
actually run v2ctl
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user