0
0
Fork 0
mirror of https://github.com/schollz/croc.git synced 2025-10-11 13:21:00 +02:00

use link flag to control version

This commit is contained in:
陈博 2018-02-07 17:32:31 +08:00 committed by Zack Scholl
parent 63ba167880
commit 21a0e1778e

View file

@ -30,8 +30,7 @@ type Flags struct {
var version string
func main() {
version = "0.4.2"
flags := new(Flags)
flag.BoolVar(&flags.HideLogo, "hidelogo", false, "run as relay")
flag.BoolVar(&flags.Relay, "relay", false, "run as relay")