update constant

This commit is contained in:
Jason
2019-08-14 21:39:18 +08:00
parent d6c40a736e
commit 899e154c92
3 changed files with 15 additions and 12 deletions

View File

@@ -19,6 +19,7 @@ import (
D "github.com/xjasonlyu/tun2socks/common/dns"
S "github.com/xjasonlyu/tun2socks/common/stats"
C "github.com/xjasonlyu/tun2socks/constant"
// init logger
_ "github.com/xjasonlyu/tun2socks/common/log/simple"
@@ -27,9 +28,6 @@ import (
const MTU = 1500
var (
version = "unknown version"
description = "A tun2socks implementation written in Go."
args = new(CmdArgs)
postFlagsInitFn []func()
@@ -87,8 +85,7 @@ func main() {
flag.Parse()
if *args.Version {
fmt.Println("Go-tun2socks", version)
fmt.Println(description)
fmt.Println("Go-tun2socks", C.Version, C.BuildTime)
os.Exit(0)
}