diff --git a/cmd/influxd/run.go b/cmd/influxd/run.go index 6b3d6d789e..1c99abca88 100644 --- a/cmd/influxd/run.go +++ b/cmd/influxd/run.go @@ -61,10 +61,7 @@ func (s *Node) ClusterURL() *url.URL { panic(e) } if h == "::" || h == "" { - // Detect hostname (or set to localhost). - if h, _ = os.Hostname(); h == "" { - h = "localhost" - } + h = "localhost" } h = net.JoinHostPort(h, p)