summaryrefslogtreecommitdiff
path: root/src/irc/dcc/dcc-get.c
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2001-11-25 17:35:47 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2001-11-25 17:35:47 +0000
commite6f006009ffc82f3ba70fac4b166123f07e8a114 (patch)
tree5424b646c26647b6270d3f42a93bc09f77132194 /src/irc/dcc/dcc-get.c
parente8b71dcd9802fe6c6e4e7966dfc35786586ddf50 (diff)
downloadirssi-e6f006009ffc82f3ba70fac4b166123f07e8a114.zip
/SET dcc_own_ip now affects also which interface irssi uses to connect to
outgoing DCC connections. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2150 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/irc/dcc/dcc-get.c')
-rw-r--r--src/irc/dcc/dcc-get.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/irc/dcc/dcc-get.c b/src/irc/dcc/dcc-get.c
index 4afb59be..39b368f6 100644
--- a/src/irc/dcc/dcc-get.c
+++ b/src/irc/dcc/dcc-get.c
@@ -26,7 +26,6 @@
#include "settings.h"
#include "irc-servers.h"
-#include "servers-setup.h"
#include "dcc-get.h"
@@ -214,15 +213,12 @@ static void sig_dccget_connected(GET_DCC_REC *dcc)
void dcc_get_connect(GET_DCC_REC *dcc)
{
- IPADDR *own_ip;
-
if (dcc->get_type == DCC_GET_DEFAULT) {
dcc->get_type = settings_get_bool("dcc_autorename") ?
DCC_GET_RENAME : DCC_GET_OVERWRITE;
}
- own_ip = IPADDR_IS_V6(&dcc->addr) ? source_host_ip6 : source_host_ip4;
- dcc->handle = net_connect_ip(&dcc->addr, dcc->port, own_ip);
+ dcc->handle = dcc_connect_ip(&dcc->addr, dcc->port);
if (dcc->handle != NULL) {
dcc->tagconn =
g_input_add(dcc->handle,