summaryrefslogtreecommitdiff
path: root/src/irc/dcc
diff options
context:
space:
mode:
authorWouter Coekaerts <coekie@irssi.org>2005-03-07 16:02:06 +0000
committercoekie <coekie@dbcabf3a-b0e7-0310-adc4-f8d773084564>2005-03-07 16:02:06 +0000
commite1c7d7e2606f4143fc507ae0ae8790802ea5a7e1 (patch)
treed83d09c47c94eac6aa3842f2e8e1a0464b6fcd7d /src/irc/dcc
parent9124723ce13cfd0983d8ccfdae1219b0e145f2dc (diff)
downloadirssi-e1c7d7e2606f4143fc507ae0ae8790802ea5a7e1.zip
Don't use a retarted ip for passive DCC
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3722 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/irc/dcc')
-rw-r--r--src/irc/dcc/dcc-chat.c4
-rw-r--r--src/irc/dcc/dcc-send.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/irc/dcc/dcc-chat.c b/src/irc/dcc/dcc-chat.c
index 0170e73f..35655c9e 100644
--- a/src/irc/dcc/dcc-chat.c
+++ b/src/irc/dcc/dcc-chat.c
@@ -519,11 +519,11 @@ static void cmd_dcc_chat(const char *data, IRC_SERVER_REC *server)
p_id = rand() % 64;
dcc->pasv_id = p_id;
- /* 16974599 is the long format of 1.3.3.7, we use a fake IP
+ /* 16843009 is the long format of 1.1.1.1, we use a fake IP
since the other side shouldn't care of it: they will send
the address for us to connect to in the reply */
irc_send_cmdv(server,
- "PRIVMSG %s :\001DCC CHAT CHAT 16974599 0 %d\001",
+ "PRIVMSG %s :\001DCC CHAT CHAT 16843009 0 %d\001",
nick, p_id);
}
cmd_params_free(free_arg);
diff --git a/src/irc/dcc/dcc-send.c b/src/irc/dcc/dcc-send.c
index 2a0dac26..4c72b761 100644
--- a/src/irc/dcc/dcc-send.c
+++ b/src/irc/dcc/dcc-send.c
@@ -454,8 +454,8 @@ static int dcc_send_one_file(int queue, const char *target, const char *fname,
dcc->arg, host, port, dcc->size);
} else {
str = g_strdup_printf(dcc->file_quoted ?
- "DCC SEND \"%s\" 16974599 0 %"PRIuUOFF_T" %d" :
- "DCC SEND %s 16974599 0 %"PRIuUOFF_T" %d",
+ "DCC SEND \"%s\" 16843009 0 %"PRIuUOFF_T" %d" :
+ "DCC SEND %s 16843009 0 %"PRIuUOFF_T" %d",
dcc->arg, dcc->size, dcc->pasv_id);
}
dcc_ctcp_message(server, target, chat, FALSE, str);