mirror of https://github.com/k3s-io/k3s
Fixing externalAddress in genericapiserver
parent
421c12e69e
commit
6e71b4a2dc
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue