mirror of
https://github.com/irssi/irssi.git
synced 2026-08-11 21:00:40 +02:00
Revert "Network and IPv{4,6} related changes"
This commit is contained in:
parent
2d69deb0a3
commit
f5f3d7cc98
19 changed files with 241 additions and 88 deletions
|
|
@ -264,12 +264,12 @@ GIOChannel *dcc_connect_ip(IPADDR *ip, int port)
|
|||
}
|
||||
|
||||
if (own_ip == NULL)
|
||||
own_ip = &source_host_ip;
|
||||
own_ip = IPADDR_IS_V6(ip) ? source_host_ip6 : source_host_ip4;
|
||||
|
||||
handle = net_connect_ip(ip, port, own_ip);
|
||||
if (handle == NULL && errno == EADDRNOTAVAIL && own_ip != NULL) {
|
||||
/* dcc_own_ip is external address */
|
||||
own_ip = &source_host_ip;
|
||||
own_ip = IPADDR_IS_V6(ip) ? source_host_ip6 : source_host_ip4;
|
||||
handle = net_connect_ip(ip, port, own_ip);
|
||||
}
|
||||
return handle;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue