mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2025-01-18 04:58:51 +02:00
edbd520c81
sckHostLookup() only returned the first address record returned from getaddrinfo(). The new AddressInfo object provides a full list of values returned from getaddrinfo(). Freeing the list is also handled by the object so there is no longer a need for FINALLY blocks to ensure the list is freed. Add the selected address to the client/server names for debugging purposes. This code does not attempt to connect to multiple addresses. It just lays the groundwork for a future commit to do so.