always use localhost, not host name

pull/2367/head
Cory LaNou 2015-04-21 10:01:04 -06:00
parent fbf9cdbfeb
commit ae43e0c8b2
1 changed files with 1 additions and 4 deletions

View File

@ -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)