mirror of
https://github.com/irssi/irssi.git
synced 2024-09-01 04:14:16 -04:00
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
This commit is contained in:
parent
9124723ce1
commit
e1c7d7e260
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user