[RADIATOR] HTTPClient: prefer IPv6 over IPv4?

C R publist.cr at gmail.com
Thu Aug 11 14:43:39 UTC 2022


HI,

I am using AuthBy REST and the REST server resolves to an IPv4 and a
IPv6 address. Our infra is IPv6 first, so I would like to connect
through IPv6. However, Radiator prefers the IPv4 address consistently,
probably because it's returned first.

I used this in <AuthBy REST> to force IPv6:
LocalAddress %{GlobalVar:IP}
LocalPort 18120

With these results:
2022-08-11T16:25:59+02:00: 00000000: HTTPClientConnection
'resolvabledomain.fqdn-443' Stream attempting tcp connection to
resolvabledomain.fqdn (10.114.56.206 port 443)
2022-08-11T16:25:59+02:00: 00000000: HTTPClientConnection
'resolvabledomain.fqdn-443' Stream attempting to use local port 18120,
local address 2a02:2c40:0:451:70:242:ac11:3

It looks like it does not work because the hostname is resolved before
the local address is set. Is there a workaround for this?

Regards,

CR


More information about the radiator mailing list