diff options
author | Timo Sirainen <cras@irssi.org> | 2001-11-25 17:35:47 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2001-11-25 17:35:47 +0000 |
commit | e6f006009ffc82f3ba70fac4b166123f07e8a114 (patch) | |
tree | 5424b646c26647b6270d3f42a93bc09f77132194 /src/irc/dcc/dcc-chat.c | |
parent | e8b71dcd9802fe6c6e4e7966dfc35786586ddf50 (diff) | |
download | irssi-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-chat.c')
-rw-r--r-- | src/irc/dcc/dcc-chat.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/irc/dcc/dcc-chat.c b/src/irc/dcc/dcc-chat.c index 9451bb6e..8ca8f8bc 100644 --- a/src/irc/dcc/dcc-chat.c +++ b/src/irc/dcc/dcc-chat.c @@ -30,7 +30,6 @@ #include "irc-servers.h" #include "irc-queries.h" -#include "servers-setup.h" #include "masks.h" #include "dcc-chat.h" @@ -360,8 +359,6 @@ static void sig_chat_connected(CHAT_DCC_REC *dcc) static void dcc_chat_connect(CHAT_DCC_REC *dcc) { - IPADDR *own_ip; - g_return_if_fail(IS_DCC_CHAT(dcc)); if (dcc->addrstr[0] == '\0' || @@ -370,8 +367,7 @@ static void dcc_chat_connect(CHAT_DCC_REC *dcc) return; } - 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, G_INPUT_WRITE | G_INPUT_READ, |