diff options
| author | Hanjie Wu <wu@x-nagi.com> | 2023-12-16 01:13:23 -0800 |
|---|---|---|
| committer | Hanjie Wu <wu@x-nagi.com> | 2023-12-16 01:13:23 -0800 |
| commit | 58054f460e6bb04d6fd28a881c0b010df778bf5d (patch) | |
| tree | 1ee1b9297f6a891155dc7b5deeda103e400bb6c6 /src/BtSetup.cc | |
| parent | 5c87f1b7b6345b895caf9f9b29a2c3c7ca94a0af (diff) | |
add uTP support for outbound connections
Diffstat (limited to 'src/BtSetup.cc')
| -rw-r--r-- | src/BtSetup.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/BtSetup.cc b/src/BtSetup.cc index 6732e657..268049d4 100644 --- a/src/BtSetup.cc +++ b/src/BtSetup.cc @@ -79,6 +79,7 @@ #include "LpdMessageDispatcher.h" #include "message.h" #include "SocketCore.h" +#include "uTPCore.h" #include "DlAbortEx.h" #include "array_fun.h" #include "DownloadContext.h" @@ -214,6 +215,8 @@ void BtSetup::setup(std::vector<std::unique_ptr<Command>>& commands, } btAnnounce->setTcpPort(btReg->getTcpPort()); + uTPCore::initContext(btReg->getTcpPort(), e); + if (option->getAsBool(PREF_BT_ENABLE_LPD) && btReg->getTcpPort() && (metadataGetMode || !torrentAttrs->privateTorrent)) { if (!btReg->getLpdMessageReceiver()) { |
