To connect to the right shard the driver needs to specify the local port. This is only possible by also choosing an IP address family (v4 or v6).
The code uses IPv4 by default, unless the user configures a different listen address. This means in the default configuration the Scylla driver is unable to connect to IPv6 addresses with a rather surprising "address not available" error.
This commit addresses that surprising behavior by not hard coding a default listen address but instead choosing one based on the IP address family that is being connected to.
To connect to the right shard the driver needs to specify the local port. This is only possible by also choosing an IP address family (v4 or v6).
The code uses IPv4 by default, unless the user configures a different listen address. This means in the default configuration the Scylla driver is unable to connect to IPv6 addresses with a rather surprising "address not available" error.
This commit addresses that surprising behavior by not hard coding a default listen address but instead choosing one based on the IP address family that is being connected to.