summaryrefslogtreecommitdiff
path: root/src/irc/dcc
diff options
context:
space:
mode:
authorailin-nemui <ailin-nemui@users.noreply.github.com>2015-09-22 17:43:31 +0200
committerailin-nemui <ailin-nemui@users.noreply.github.com>2015-09-22 17:43:31 +0200
commit2d69deb0a36516bac9514c6d53a1389b0a4b031a (patch)
tree7187386b84c626c66a7f56a2ad9140647dc236d7 /src/irc/dcc
parent5ced71e1ac5cf74e46115ade90fa9004e6fe1493 (diff)
parent564829610de20f75ec667f1943524c3a49b9ea3f (diff)
downloadirssi-2d69deb0a36516bac9514c6d53a1389b0a4b031a.zip
Merge pull request #290 from LemonBoy/ipv6
Network and IPv{4,6} related changes
Diffstat (limited to 'src/irc/dcc')
-rw-r--r--src/irc/dcc/dcc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/irc/dcc/dcc.c b/src/irc/dcc/dcc.c
index 17f6c477..7fef2ae5 100644
--- a/src/irc/dcc/dcc.c
+++ b/src/irc/dcc/dcc.c
@@ -264,12 +264,12 @@ GIOChannel *dcc_connect_ip(IPADDR *ip, int port)
}
if (own_ip == NULL)
- own_ip = IPADDR_IS_V6(ip) ? source_host_ip6 : source_host_ip4;
+ own_ip = &source_host_ip;
handle = net_connect_ip(ip, port, own_ip);
if (handle == NULL && errno == EADDRNOTAVAIL && own_ip != NULL) {
/* dcc_own_ip is external address */
- own_ip = IPADDR_IS_V6(ip) ? source_host_ip6 : source_host_ip4;
+ own_ip = &source_host_ip;
handle = net_connect_ip(ip, port, own_ip);
}
return handle;