mirror of
https://github.com/ginuerzh/gost.git
synced 2026-10-19 16:14:35 +00:00
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 ```
This commit is contained in:
+1
-1
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user