mirror of
https://github.com/irssi/irssi.git
synced 2026-08-19 16:42:30 +02:00
/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:
parent
2aeb9259e0
commit
481f4bc327
6 changed files with 58 additions and 13 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue