mirror of
https://github.com/xjasonlyu/tun2socks.git
synced 2025-10-15 21:30:50 +08:00
update constant
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user