]> git.sur5r.net Git - bacula/bacula/commit
Tweak connect error.
authorMarco van Wieringen <mvw@planets.elm.net>
Wed, 30 May 2012 14:15:36 +0000 (16:15 +0200)
committerMarco van Wieringen <mvw@planets.elm.net>
Wed, 30 May 2012 14:29:21 +0000 (16:29 +0200)
commita4f09e5e927fae853e7f3b95d2b2d6c3219b7f1a
treea70e002f4704ce8284e40b01130c0fe468af866e
parent00f0ec30bab8084a483b5481b1203401099e16b6
Tweak connect error.

On lookup of a hostname we could get back both IPv4 and IPV6 addresses
for a given host. But we may only support IPV4 on the local host
and as such trying to create an IPV6 socket will fail. If we check
the return code of the socket call for EAFNOSUPPORT we catch such
an error and can continue trying to create a socket type that is
supported.
bacula/src/lib/bsock.c