Commit 8ab2fe6f authored by Raymond Liu's avatar Raymond Liu Committed by ginuerzh

Print version info to Stdout instead of Stderr

Otherwise we can't get the right version information by this:
```shell
gost -V | cut -d' ' -f2
```
parent d474a0c4
......@@ -40,7 +40,7 @@ func init() {
flag.Parse()
if printVersion {
fmt.Fprintf(os.Stderr, "gost %s (%s %s/%s)\n",
fmt.Fprintf(os.Stdout, "gost %s (%s %s/%s)\n",
gost.Version, runtime.Version(), runtime.GOOS, runtime.GOARCH)
os.Exit(0)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment