This commit is contained in:
septs 2016-11-10 06:49:20 +00:00 committed by GitHub
commit 25e5b1b7b6
2 changed files with 4 additions and 30 deletions

28
.gitignore vendored
View File

@ -1,27 +1 @@
# Compiled Object files, Static and Dynamic libs (Shared Objects) /cmd/gost/gost
*.o
*.a
*.so
# Folders
_obj
_test
release
debian
# Architecture specific extensions/prefixes
*.[568vq]
[568vq].out
*.cgo1.go
*.cgo2.c
_cgo_defun.c
_cgo_gotypes.go
_cgo_export.*
_testmain.go
*.exe
*.test
*.bak

View File

@ -1,11 +1,11 @@
package main package main
import ( import (
"../.."
"crypto/tls" "crypto/tls"
"encoding/json" "encoding/json"
"flag" "flag"
"fmt" "fmt"
"github.com/ginuerzh/gost"
"github.com/golang/glog" "github.com/golang/glog"
"golang.org/x/net/http2" "golang.org/x/net/http2"
"io/ioutil" "io/ioutil"
@ -42,12 +42,12 @@ func init() {
if flag.NFlag() == 0 { if flag.NFlag() == 0 {
flag.PrintDefaults() flag.PrintDefaults()
return os.Exit(0)
} }
if printVersion { if printVersion {
fmt.Fprintf(os.Stderr, "GOST %s (%s)\n", gost.Version, runtime.Version()) fmt.Fprintf(os.Stderr, "GOST %s (%s)\n", gost.Version, runtime.Version())
return os.Exit(0)
} }
} }