Commit 23ace9b1 authored by ginuerzh's avatar ginuerzh

print version

parent 35d67235
...@@ -18,6 +18,8 @@ var ( ...@@ -18,6 +18,8 @@ var (
) )
func init() { func init() {
printVersion()
flag.StringVar(&Proxy, "P", "", "proxy for forward") flag.StringVar(&Proxy, "P", "", "proxy for forward")
flag.StringVar(&Saddr, "S", "", "the server that connecting to") flag.StringVar(&Saddr, "S", "", "the server that connecting to")
flag.StringVar(&Laddr, "L", ":8080", "listen address") flag.StringVar(&Laddr, "L", ":8080", "listen address")
......
package main
import (
"fmt"
)
const (
Version = "1.2"
)
func printVersion() {
fmt.Println("gost", Version)
}
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