Merge pull request #3 from captainblue2013/patch-1

Patch 1
pull/198/head
开发者小蓝 6 years ago committed by GitHub
commit 70577a1e27
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      pkg/conf/env/env.go

@ -5,6 +5,8 @@ package env
import (
"flag"
"os"
"strconv"
"time"
)
// deploy env.
@ -49,10 +51,9 @@ func init() {
if Hostname == "" {
Hostname, err = os.Hostname()
if err != nil {
Hostname = ""
Hostname = strconv.Itoa(int(time.Now().UnixNano()))
}
}
addFlag(flag.CommandLine)
}

Loading…
Cancel
Save