thibaultcha / lua-cassandra

Pure Lua driver for Apache Cassandra
https://thibaultcha.github.io/lua-cassandra
Other
98 stars 35 forks source link

fix(cluster) use 'rpc_address' to contact local peer #122

Closed thibaultcha closed 5 years ago

thibaultcha commented 5 years ago

A follow up to 8b9fcd9, in which we used listen_address as the peer's addr instead of rpc_address.

We also issue warning and implement fallbacks when rpc_address is set to all interfaces (0.0.0.0).

Additionally, we handle the IPv6 unspecified address (::).