Merge branch 'fixwin' of git://github.com/boypt/v2ray-core into boypt-fixwin

pull/2141/head
Shelikhoo 2019-05-17 22:07:03 +08:00
commit ef6bd5e192
No known key found for this signature in database
GPG Key ID: C4D5E79D22B25316
1 changed files with 2 additions and 1 deletions

View File

@ -3,6 +3,7 @@ package command
//go:generate errorgen
import (
"bufio"
"os"
"github.com/golang/protobuf/proto"
@ -27,7 +28,7 @@ func (c *ConfigCommand) Description() control.Description {
}
func (c *ConfigCommand) Execute(args []string) error {
pbConfig, err := serial.LoadJSONConfig(os.Stdin)
pbConfig, err := serial.LoadJSONConfig(bufio.NewReader(os.Stdin))
if err != nil {
return newError("failed to parse json config").Base(err)
}