summaryrefslogtreecommitdiff
path: root/src/irc/dcc
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2002-03-31 19:40:40 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2002-03-31 19:40:40 +0000
commitbb3a1787b4f0d4f00fe101b71aa9cab28bcbc470 (patch)
tree754f1078fe2a5e3c3e9a2f4131b338affcc53382 /src/irc/dcc
parentbfae72766ea2da6db76f6f23bccaf7a5dd708c94 (diff)
downloadirssi-bb3a1787b4f0d4f00fe101b71aa9cab28bcbc470.zip
Listen for DCC connections in all interfaces
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2649 dbcabf3a-b0e7-0310-adc4-f8d773084564
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 37bc7854..712583d8 100644
--- a/src/irc/dcc/dcc.c
+++ b/src/irc/dcc/dcc.c
@@ -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;
}