diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2011-07-21 23:42:41 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2011-07-21 23:42:41 +0900 |
| commit | c58f736bb91f55fb68151c5c7d977911f993b1ab (patch) | |
| tree | 98dda8e77c825244f4d43cacc9951c7deaed2666 /src/DefaultBtInteractive.cc | |
| parent | f0cd83f809ea679ab035f5827dba93a3ee25c59b (diff) | |
BtRegistry now holds BitTorrent TCP server port.
Because BitTorrent TCP server port is global configuration, it is not
preferable that per download resource BtRuntime holds it. We also
refactored and eliminated ugly static variable in PeerListenCommand.
If TCP port is necessary, we inject it to them directly.
Diffstat (limited to 'src/DefaultBtInteractive.cc')
| -rw-r--r-- | src/DefaultBtInteractive.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/DefaultBtInteractive.cc b/src/DefaultBtInteractive.cc index 693187a8..a4017e8c 100644 --- a/src/DefaultBtInteractive.cc +++ b/src/DefaultBtInteractive.cc @@ -190,7 +190,7 @@ void DefaultBtInteractive::addHandshakeExtendedMessageToQueue() static const std::string CLIENT_ARIA2("aria2/"PACKAGE_VERSION); HandshakeExtensionMessageHandle m(new HandshakeExtensionMessage()); m->setClientVersion(CLIENT_ARIA2); - m->setTCPPort(btRuntime_->getListenPort()); + m->setTCPPort(tcpPort_); m->setExtensions(extensionMessageRegistry_->getExtensions()); SharedHandle<TorrentAttribute> attrs = bittorrent::getTorrentAttrs(downloadContext_); |
