hashicorp/serf

Can't bind Serf agent to IPv6 address

TemG-Kristos opened this issue · 0 comments

Hello,

I'm trying to launch a serf agent while binding it to an IPv6 address using Serf 0.8.2. I've tried using the following commands without luck:
serf agent -bind=[$IPv6_ADDRESS]
serf agent -bind=[$IPv6_ADDRESS]:7946

Both of these commands work if I use the localhost address [::1], but other IPv6 addresses on my machine always cause the following issue:

==> Starting Serf agent...
==> Failed to start the Serf agent: Error creating Serf: Failed to create memberlist: Could not set up network transport: failed to obtain an address: Failed to start TCP listener

Using the advertise flag instead of bind works with IPv6 though. Is this expected/intended behavior?