From eb9f9ac59d5433ed832fc13b6f984b1f9f93780d Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Wed, 27 Feb 2008 12:56:52 +0000 Subject: [PATCH] 2008-02-27 Tatsuhiro Tsujikawa Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL. is missing. * src/OptionHandlerFactory.cc --- ChangeLog | 6 ++++++ src/OptionHandlerFactory.cc | 1 + 2 files changed, 7 insertions(+) diff --git a/ChangeLog b/ChangeLog index 990b3b3b..37c81b93 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-02-27 Tatsuhiro Tsujikawa + + Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL. + is missing. + * src/OptionHandlerFactory.cc + 2008-02-27 Tatsuhiro Tsujikawa Fixed the bug that HAVE message is not sent for a piece they are diff --git a/src/OptionHandlerFactory.cc b/src/OptionHandlerFactory.cc index 80e9fd83..36ce7183 100644 --- a/src/OptionHandlerFactory.cc +++ b/src/OptionHandlerFactory.cc @@ -112,6 +112,7 @@ OptionHandlers OptionHandlerFactory::createOptionHandlers() handlers.push_back(new ParameterOptionHandler(PREF_METALINK_PREFERRED_PROTOCOL, std::deque(¶ms[0], ¶ms[arrayLength(params)]))); } + handlers.push_back(new BooleanOptionHandler(PREF_METALINK_ENABLE_UNIQUE_PROTOCOL)); handlers.push_back(new BooleanOptionHandler(PREF_ENABLE_PEER_EXCHANGE)); handlers.push_back(new BooleanOptionHandler(PREF_ENABLE_DHT)); handlers.push_back(new IntegerRangeOptionHandler(PREF_DHT_LISTEN_PORT, 1024, UINT16_MAX));