1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05:00

Listen for DCC connections in all interfaces

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2649 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2002-03-31 19:40:40 +00:00 committed by cras
parent bfae72766e
commit bb3a1787b4

View File

@ -208,7 +208,7 @@ GIOChannel *dcc_listen(GIOChannel *iface, IPADDR *ip, int *port)
if (first == 0) {
/* random port */
*port = 0;
return net_listen(ip, port);
return net_listen(NULL, port);
}
/* get last port */
@ -226,7 +226,7 @@ GIOChannel *dcc_listen(GIOChannel *iface, IPADDR *ip, int *port)
/* use the first available port */
for (*port = first; *port <= last; (*port)++) {
handle = net_listen(ip, port);
handle = net_listen(NULL, port);
if (handle != NULL)
return handle;
}