/SET resolve_prefer_ipv6 - should we prefer IPv6 or IPv4 addresses in

host name resolving. /SERVER ADD: added options -4 and -6. Fixed crash
at startup if server didn't have chat network set. "Connecting to xxx
[ip]" is now displayed before calling connect(), so if it fails we'll
still get the IP it's trying to connect to.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1268 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2001-02-20 16:23:28 +00:00 committed by cras
commit 481f4bc327
6 changed files with 58 additions and 13 deletions

View file

@ -171,6 +171,9 @@ static void server_connect_callback_readpipe(SERVER_REC *server)
server->connect_pipe[0] = NULL;
server->connect_pipe[1] = NULL;
if (iprec.error == 0)
signal_emit("server connecting", 2, server, &iprec.ip);
conn = server->connrec;
handle = iprec.error != 0 ? NULL :
net_connect_ip(&iprec.ip, conn->proxy != NULL ?
@ -205,7 +208,6 @@ static void server_connect_callback_readpipe(SERVER_REC *server)
g_input_add(handle, G_INPUT_WRITE | G_INPUT_READ,
(GInputFunction) server_connect_callback_init,
server);
signal_emit("server connecting", 2, server, &iprec.ip);
}
/* initializes server record but doesn't start connecting */