From cd6b6e359135f88afffbaa31c126489aa9813571 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Fri, 20 Jul 2007 17:06:21 +0000 Subject: 2007-07-20 Tatsuhiro Tsujikawa Fixed the bug that prevents cookies from being sent to the server if the domain of cookie is FQDN and starts with ".". * src/Cookie.cc (match) To add the ability to change peer id. * src/DefaultBtContext.h (_peerIdPrefix): New variable (setPeerIdPrefix): New function. * src/torrentRequestInfo.cc (execute): Set the option value of PREF_PEER_ID_PREFIX to DefaultBtContext. * src/main.cc (main): Added peer-id-prefix command-line option. The usage message is not added yet. * src/DefaultBtContext.cc (generatePeerId): Use _peerIdPrefix. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition. --- src/FileAllocationDispatcherCommand.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/FileAllocationDispatcherCommand.cc') diff --git a/src/FileAllocationDispatcherCommand.cc b/src/FileAllocationDispatcherCommand.cc index 796df489..8f328bbf 100644 --- a/src/FileAllocationDispatcherCommand.cc +++ b/src/FileAllocationDispatcherCommand.cc @@ -34,6 +34,7 @@ /* copyright --> */ #include "FileAllocationDispatcherCommand.h" #include "FileAllocationCommand.h" +#include "message.h" bool FileAllocationDispatcherCommand::execute() { @@ -44,7 +45,7 @@ bool FileAllocationDispatcherCommand::execute() if(!_e->_fileAllocationMan->isFileAllocationBeingExecuted() && _e->_fileAllocationMan->nextFileAllocationEntryExists()) { FileAllocationEntryHandle entry = _e->_fileAllocationMan->popNextFileAllocationEntry(); - logger->info("Dispatching FileAllocationCommand for CUID#%d.", + logger->info(MSG_FILE_ALLOCATION_DISPATCH, entry->getCUID()); FileAllocationCommand* command = new FileAllocationCommand(entry->getCUID(), -- cgit