Fixing externalAddress in genericapiserver

pull/6/head
nikhiljindal 2016-06-03 11:15:54 -07:00
parent 421c12e69e
commit 6e71b4a2dc
1 changed files with 1 additions and 1 deletions

View File

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