(trunk libT) suppress ipv6 EHOSTUNREACH as well as ENETUNREACH

This commit is contained in:
Erick Turnquist 2009-02-08 22:52:47 +00:00
parent fc767a3f03
commit 72297dbdb4
1 changed files with 2 additions and 1 deletions

View File

@ -514,7 +514,8 @@ tr_netOpenTCP( tr_session * session,
{
int tmperrno;
tmperrno = sockerrno;
if( tmperrno != ENETUNREACH || addr->type == TR_AF_INET )
if( ( tmperrno != ENETUNREACH && tmperrno != EHOSTUNREACH )
|| addr->type == TR_AF_INET )
tr_err( _( "Couldn't connect socket %d to %s, port %d (errno %d - %s)" ),
s, tr_ntop_non_ts( addr ), (int)port, tmperrno,
tr_strerror( tmperrno ) );