-
Notifications
You must be signed in to change notification settings - Fork 1k
Description
Hi,
recently I was working on migration from RADIX to Valkey-go. I made a small mistake in the code which I was unaware of, but it got me a real headache. It seams that cluster-annouce-ip accepts not only IP. I think the input for that should be validated. In my code by mistake I used a string which was IP:PORT.
Here is a code example:
cmd := client.B().ConfigSet().ParameterValue().ParameterValue("cluster-announce-ip", ipAddr).Build()
where ipAddr is 10.1.131.239:6380. When you will execute the command the CLUSTER INFO looks like that
036e48d5a1c9c6af6c3bce08aa0604a5e720a37e 10.1.131.239:6380:6380@16380 myself,master - 0 0 0 connected
There is a port doubled and GOSSIP is not working properly.
Expected behavior
I would expect to have an error in such case and not accept a string which is not IP.