mirror of
https://github.com/irssi/irssi.git
synced 2026-08-18 16:12:30 +02:00
/CONNECT, /SERVER: added -4 and -6 options for specifying if we should
connect to IPv4 or IPv6 address of the server. If -host or /SET hostname is set irssi determines from it if it should use IPv4 or v6. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1192 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
6358c2d627
commit
8938a0f42b
8 changed files with 39 additions and 22 deletions
|
|
@ -256,13 +256,17 @@ int server_start_connect(SERVER_REC *server)
|
|||
}
|
||||
|
||||
server->connect_pipe[0] = g_io_channel_unix_new(fd[0]);
|
||||
server->connect_pipe[1] = g_io_channel_unix_new(fd[1]);
|
||||
server->connect_pipe[1] = g_io_channel_unix_new(fd[1]);
|
||||
|
||||
if (server->connrec->family == 0 && server->connrec->own_ip != NULL)
|
||||
server->connrec->family = server->connrec->own_ip->family;
|
||||
|
||||
connect_address = server->connrec->proxy != NULL ?
|
||||
server->connrec->proxy : server->connrec->address;
|
||||
server->connect_pid =
|
||||
net_gethostbyname_nonblock(connect_address,
|
||||
server->connect_pipe[1]);
|
||||
server->connect_pipe[1],
|
||||
server->connrec->family);
|
||||
server->connect_tag =
|
||||
g_input_add(server->connect_pipe[0], G_INPUT_READ,
|
||||
(GInputFunction) server_connect_callback_readpipe,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue