lib/elastic/transport/transport/sniffer.rb in elastic-transport-8.2.0 vs lib/elastic/transport/transport/sniffer.rb in elastic-transport-8.2.1

- old
+ new

@@ -74,10 +74,12 @@ reload_on_failure: false ) end def parse_publish_address(publish_address) - # publish_address is in the format hostname/ip:port + # When publish_address is in the format 'inet[hostname/ip:port]' + return parse_address_port(publish_address[6..-2]) if publish_address =~ /^inet\[.*\]$/ + if publish_address =~ /\// parts = publish_address.partition('/') [ parts[0], parse_address_port(parts[2])[1] ] else parse_address_port(publish_address)