5
0
mirror of https://github.com/cwinfo/yggdrasil-go.git synced 2024-11-12 22:10:28 +00:00

Minor tweaks

This commit is contained in:
Neil Alexander 2019-08-14 20:09:02 +01:00
parent 33cd10c463
commit 02bfe28399
No known key found for this signature in database
GPG Key ID: A02A2019A2BB0944
2 changed files with 6 additions and 6 deletions

View File

@ -131,7 +131,7 @@ func main() {
case *ver:
fmt.Println("Build name:", version.BuildName())
fmt.Println("Build version:", version.BuildVersion())
os.Exit(0)
return
case *autoconf:
// Use an autoconf-generated config, this will give us random keys and
// port numbers, and will use an automatically selected TUN/TAP interface.

View File

@ -59,10 +59,10 @@ func main() {
args := flag.Args()
if *ver {
fmt.Println(os.Args[0], "build name:", version.BuildName())
fmt.Println(os.Args[0], "version:", version.BuildVersion())
fmt.Println("\nFor get yggdrasil version use\n - ", os.Args[0], "getSelf")
os.Exit(0)
fmt.Println("Build name:", version.BuildName())
fmt.Println("Build version:", version.BuildVersion())
fmt.Println("To get the version number of the running Yggdrasil node, run", os.Args[0], "getSelf")
return
}
if len(args) == 0 {