1
0
mirror of https://github.com/irssi/irssi.git synced 2025-02-02 15:08:01 -05:00

Forced IPv4 connection to host with only IPv6 address should use the

IPv6 address..


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1340 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2001-03-04 03:05:16 +00:00 committed by cras
parent 62bd2045bb
commit 0be624272c

View File

@ -177,7 +177,7 @@ static void server_connect_callback_readpipe(SERVER_REC *server)
/* figure out if we should use IPv4 or v6 address */
ip = iprec.error != 0 ? NULL : iprec.ip6.family == 0 ||
server->connrec->family == AF_INET ?
(server->connrec->family == AF_INET && iprec.ip4.family != 0) ?
&iprec.ip4 : &iprec.ip6;
if (iprec.ip4.family != 0 && server->connrec->family == 0 &&
!settings_get_bool("resolve_prefer_ipv6"))