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:
parent
bfae72766e
commit
bb3a1787b4
@ -208,7 +208,7 @@ GIOChannel *dcc_listen(GIOChannel *iface, IPADDR *ip, int *port)
|
|||||||
if (first == 0) {
|
if (first == 0) {
|
||||||
/* random port */
|
/* random port */
|
||||||
*port = 0;
|
*port = 0;
|
||||||
return net_listen(ip, port);
|
return net_listen(NULL, port);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* get last port */
|
/* get last port */
|
||||||
@ -226,7 +226,7 @@ GIOChannel *dcc_listen(GIOChannel *iface, IPADDR *ip, int *port)
|
|||||||
|
|
||||||
/* use the first available port */
|
/* use the first available port */
|
||||||
for (*port = first; *port <= last; (*port)++) {
|
for (*port = first; *port <= last; (*port)++) {
|
||||||
handle = net_listen(ip, port);
|
handle = net_listen(NULL, port);
|
||||||
if (handle != NULL)
|
if (handle != NULL)
|
||||||
return handle;
|
return handle;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user