feat: default host name

pull/201/head
开发者小蓝 6 years ago committed by GitHub
parent 3233dc9fec
commit d5d510f7d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      pkg/conf/env/env.go

@ -49,7 +49,7 @@ func init() {
if Hostname == "" {
Hostname, err = os.Hostname()
if err != nil {
Hostname = ""
Hostname = Hostname = strconv.Itoa(time.Now().UnixNano())
}
}
addFlag(flag.CommandLine)

Loading…
Cancel
Save