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:
parent
62bd2045bb
commit
0be624272c
@ -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"))
|
||||
|
Loading…
x
Reference in New Issue
Block a user