Support for publish_address as hostname/ip:port (#804)
This commit is contained in:
committed by
GitHub
parent
5794ad54e4
commit
5af9ec1040
@ -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 }
|
||||
|
||||
Reference in New Issue
Block a user