mirror of https://github.com/aria2/aria2
2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Generate peer ID after SimpleRandomizer is initialized. * src/main.cc * src/option_processing.ccpull/1/head
parent
3f3e9c0ff0
commit
f8fd518229
|
@ -1,3 +1,9 @@
|
|||
2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||
|
||||
Generate peer ID after SimpleRandomizer is initialized.
|
||||
* src/main.cc
|
||||
* src/option_processing.cc
|
||||
|
||||
2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||
|
||||
Removed unused method argument.
|
||||
|
|
|
@ -173,6 +173,10 @@ downloadresultcode::RESULT main(int argc, char* argv[])
|
|||
|
||||
SimpleRandomizer::init();
|
||||
BitfieldManFactory::setDefaultRandomizer(SimpleRandomizer::getInstance());
|
||||
#ifdef ENABLE_BITTORRENT
|
||||
bittorrent::generateStaticPeerId(op->get(PREF_PEER_ID_PREFIX),
|
||||
SimpleRandomizer::getInstance());
|
||||
#endif // ENABLE_BITTORRENT
|
||||
if(op->get(PREF_LOG) == "-") {
|
||||
LogFactory::setLogFile(DEV_STDOUT);
|
||||
} else if(!op->get(PREF_LOG).empty()) {
|
||||
|
|
|
@ -204,10 +204,6 @@ void option_processing(Option& op, std::deque<std::string>& uris,
|
|||
}
|
||||
}
|
||||
#endif // HAVE_DAEMON
|
||||
#ifdef ENABLE_BITTORRENT
|
||||
bittorrent::generateStaticPeerId(op.get(PREF_PEER_ID_PREFIX),
|
||||
SimpleRandomizer::getInstance());
|
||||
#endif // ENABLE_BITTORRENT
|
||||
}
|
||||
|
||||
} // namespace aria2
|
||||
|
|
Loading…
Reference in New Issue