mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-22 01:31:55 +00:00
Don't report refused connections.
This commit is contained in:
parent
b6c9d8eb2e
commit
9cbf43eb8a
@ -628,7 +628,8 @@ sk_open(sock *s)
|
||||
case SK_TCP_ACTIVE:
|
||||
if (connect(fd, (struct sockaddr *) &sa, sizeof(sa)) >= 0)
|
||||
sk_tcp_connected(s);
|
||||
else if (errno != EINTR && errno != EAGAIN && errno != EINPROGRESS)
|
||||
else if (errno != EINTR && errno != EAGAIN && errno != EINPROGRESS &&
|
||||
errno != ECONNREFUSED && errno != EHOSTUNREACH)
|
||||
ERR("connect");
|
||||
break;
|
||||
case SK_TCP_PASSIVE:
|
||||
|
Loading…
Reference in New Issue
Block a user