summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/core/servers.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/servers.c b/src/core/servers.c
index ad48b2e8..887efd4b 100644
--- a/src/core/servers.c
+++ b/src/core/servers.c
@@ -196,7 +196,8 @@ static void server_real_connect(SERVER_REC *server, IPADDR *ip,
if (handle == NULL) {
/* failed */
- if (server->connrec->use_ssl && errno == ENOSYS)
+ if (errno == EADDRNOTAVAIL ||
+ (server->connrec->use_ssl && errno == ENOSYS))
server->no_reconnect = TRUE;
server->connection_lost = TRUE;