Skip to content

Commit

Permalink
Delayed check user
Browse files Browse the repository at this point in the history
Signed-off-by: Jianhui Zhao <[email protected]>
  • Loading branch information
Jianhui Zhao committed Oct 7, 2018
1 parent 91ecac9 commit 1edd3cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,13 +109,13 @@ func main() {
cert := flag.String("cert", "", "certFile Path")
key := flag.String("key", "", "keyFile Path")

flag.Parse()

if !checkUser() {
rlog.Println("Operation not permitted")
os.Exit(1)
}

flag.Parse()

rand.Seed(time.Now().Unix())

rlog.Printf("go version: %s %s/%s\n", runtime.Version(), runtime.GOOS, runtime.GOARCH)
Expand Down

0 comments on commit 1edd3cc

Please sign in to comment.