diff --git a/pkg/conf/env/env.go b/pkg/conf/env/env.go index 64c4a963a..aea995ab9 100644 --- a/pkg/conf/env/env.go +++ b/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)