Fixing externalAddress in genericapiserver

This commit is contained in:
nikhiljindal 2016-06-03 11:15:54 -07:00
parent 421c12e69e
commit 6e71b4a2dc

View File

@ -303,7 +303,7 @@ func setDefaults(c *Config) {
if len(c.ExternalHost) == 0 && c.PublicAddress != nil { if len(c.ExternalHost) == 0 && c.PublicAddress != nil {
hostAndPort := c.PublicAddress.String() hostAndPort := c.PublicAddress.String()
if c.ReadWritePort != 0 { if c.ReadWritePort != 0 {
hostAndPort = net.JoinHostPort(hostAndPort, strconv.Itoa(c.ServiceReadWritePort)) hostAndPort = net.JoinHostPort(hostAndPort, strconv.Itoa(c.ReadWritePort))
} }
c.ExternalHost = hostAndPort c.ExternalHost = hostAndPort
} }