diff options
author | Timo Sirainen <cras@irssi.org> | 2003-11-16 16:33:53 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2003-11-16 16:33:53 +0000 |
commit | b7ed8cec6c81022bf3b629b2f9db58c200428be8 (patch) | |
tree | 4c0a2501a7158fcb519933d3d1b7b6cedae55073 /src/core | |
parent | aa78361f24a63b18df292a70a889b1d3c64d5a8e (diff) | |
download | irssi-b7ed8cec6c81022bf3b629b2f9db58c200428be8.zip |
Don't reconnect with invalid own hostname.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3141 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/servers.c | 3 |
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; |