mirror of
https://github.com/xjasonlyu/tun2socks.git
synced 2025-10-14 13:04:10 +08:00
remove 'v' in version
This commit is contained in:
@@ -79,7 +79,7 @@ func init() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func showVersion() {
|
func showVersion() {
|
||||||
version := strings.Split(C.Version, "-")
|
version := strings.Split(C.Version[1:], "-")
|
||||||
fmt.Printf("Go-tun2socks %s (%s)\n", version[0], version[1])
|
fmt.Printf("Go-tun2socks %s (%s)\n", version[0], version[1])
|
||||||
fmt.Printf("%s/%s, %s, %s\n", runtime.GOOS, runtime.GOARCH, runtime.Version(), version[2])
|
fmt.Printf("%s/%s, %s, %s\n", runtime.GOOS, runtime.GOARCH, runtime.Version(), version[2])
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user