mirror of https://github.com/v2ray/v2ray-core
version function
parent
3f0ada1bc8
commit
7720d6bff6
4
core.go
4
core.go
|
@ -14,6 +14,10 @@ var (
|
||||||
intro = "A stable and unbreakable connection for everyone."
|
intro = "A stable and unbreakable connection for everyone."
|
||||||
)
|
)
|
||||||
|
|
||||||
|
func Version() string {
|
||||||
|
return version
|
||||||
|
}
|
||||||
|
|
||||||
func PrintVersion() {
|
func PrintVersion() {
|
||||||
fmt.Printf("V2Ray %s (%s) %s%s", version, codename, build, platform.LineSeparator())
|
fmt.Printf("V2Ray %s (%s) %s%s", version, codename, build, platform.LineSeparator())
|
||||||
fmt.Printf("%s%s", intro, platform.LineSeparator())
|
fmt.Printf("%s%s", intro, platform.LineSeparator())
|
||||||
|
|
Loading…
Reference in New Issue