MM-15325: Allowing to configure the device for detect the IP in HA clusters (#10917)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
9445cb29f5
Коммит
969c032a1e
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user