diff options
| author | Kurt Kartaltepe <kkartaltepe@gmail.com> | 2017-06-23 15:39:46 -0500 |
|---|---|---|
| committer | Kurt Kartaltepe <kkartaltepe@gmail.com> | 2017-07-11 10:18:51 -0500 |
| commit | a3bacc0ff183e22abed17d44ee7c524b7e4bae56 (patch) | |
| tree | 1ba77f269917ec7811d741b56efcb3c0f56333a0 /src/OptionHandlerFactory.cc | |
| parent | 88ab6ba23c027bb6df7bfdeb5c244bb30344503b (diff) | |
Add --peer-agent option
Add --peer-agent for setting the version/user agent used in the extended
handshake protocol for bittorrent.
Diffstat (limited to 'src/OptionHandlerFactory.cc')
| -rw-r--r-- | src/OptionHandlerFactory.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/OptionHandlerFactory.cc b/src/OptionHandlerFactory.cc index 6f352cd4..9a3197e8 100644 --- a/src/OptionHandlerFactory.cc +++ b/src/OptionHandlerFactory.cc @@ -1854,6 +1854,12 @@ std::vector<OptionHandler*> OptionHandlerFactory::createOptionHandlers() handlers.push_back(op); } { + OptionHandler* op(new DefaultOptionHandler( + PREF_PEER_AGENT, TEXT_PEER_AGENT, "aria2/" PACKAGE_VERSION)); + op->addTag(TAG_BITTORRENT); + handlers.push_back(op); + } + { OptionHandler* op(new FloatNumberOptionHandler( PREF_SEED_TIME, TEXT_SEED_TIME, NO_DEFAULT_VALUE, 0)); op->addTag(TAG_BITTORRENT); |
