[gnutls-help] Forcing IPv4 with gnutls-cli?

Nikos Mavrogiannopoulos nmav at gnutls.org
Tue Jul 22 13:09:52 CEST 2014


On Fri, Jul 11, 2014 at 2:33 AM, Manuel Pégourié-Gonnard
<mpg at polarssl.org> wrote:
> Hi,
> Assume I want to connect to a DTLS server on localhost, that listens only in
> IPv4. On IPv6-capable systems, localhost also resolves as ::1 and this is the
> first address gnutls-cli tries. Unfortunately, with UDP it cannot detect that
> no-one is listening on the other side, so it keeps trying to resend it
> ClientHello to ::1 until it times out and exits with a failing status.
> I can force the use of IPv4 by specifying the host as "127.0.0.1" instead of
> "localhost" but then certificate validation fails.

Most probably we need an option to separately set the hostname and the
IP to connect to. Not in my immediate plans to add, but if there is a
patch for that, I'll apply it.

regards,
Nikos



More information about the Gnutls-help mailing list