electric icon indicating copy to clipboard operation
electric copied to clipboard

Sources with IPv4 address based hosts still attempt to connect over ipv6

Open magnetised opened this issue 4 months ago • 2 comments

Versions

  • Electric: main

Bug description

If you configure a db with host 127.0.0.1 the connection resolver treats it as a hostname and tries to connect over ipv6.

Expected behavior

The connection resolver should recognise an IP address and pre-emptively configure the ipv6 support based on the address class

magnetised avatar Sep 11 '25 08:09 magnetised

the connection resolver treats it as a hostname and tries to connect over ipv6.

Does this only happen when ELECTRIC_DATABASE_USE_IPV6 is set to true?

alco avatar Sep 11 '25 09:09 alco

the connection resolver treats it as a hostname and tries to connect over ipv6.

Does this only happen when ELECTRIC_DATABASE_USE_IPV6 is set to true?

Yes

magnetised avatar Sep 17 '25 15:09 magnetised