Support for publish_address as hostname/ip:port (#804)

This commit is contained in:
Tomas Della Vedova
2019-04-08 17:13:44 +02:00
committed by GitHub
parent 5794ad54e4
commit 5af9ec1040
6 changed files with 159 additions and 37 deletions

View File

@ -353,7 +353,8 @@ class Transport {
}
debug('Sniffing ended successfully', result.body)
const hosts = this.connectionPool.nodesToHost(result.body.nodes)
const protocol = result.meta.connection.url.protocol || 'http:'
const hosts = this.connectionPool.nodesToHost(result.body.nodes, protocol)
this.connectionPool.update(hosts)
result.meta.sniff = { hosts, reason }