MM-15325: Allowing to configure the device for detect the IP in HA clusters (#10917)

Этот коммит содержится в:
Jesús Espino
2019-06-11 20:53:03 +02:00
коммит произвёл GitHub
родитель 9445cb29f5
Коммит 969c032a1e
5 изменённых файлов: 37 добавлений и 13 удалений

Просмотреть файл

@@ -46,10 +46,10 @@ func (o *ClusterDiscovery) AutoFillHostname() {
}
}
func (o *ClusterDiscovery) AutoFillIpAddress() {
func (o *ClusterDiscovery) AutoFillIpAddress(iface string) {
// attempt to set the hostname to the first non-local IP address
if len(o.Hostname) == 0 {
o.Hostname = GetServerIpAddress()
o.Hostname = GetServerIpAddress(iface)
}
}