mirror of
https://github.com/irssi/irssi.git
synced 2026-08-18 08:02:13 +02: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
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue