mirror of
https://github.com/aria2/aria2.git
synced 2025-02-26 08:22:11 +00:00
Fix bug that UDP port was incorrectly used in UDP tracker announce request
This commit is contained in:
parent
9b41970134
commit
ddb94ebdac
@ -300,7 +300,7 @@ TrackerWatcherCommand::createAnnounce(DownloadEngine* e)
|
||||
if (udpTrackerClient_ &&
|
||||
uri::getFieldString(res, USR_SCHEME, uri.c_str()) == "udp") {
|
||||
uint16_t localPort;
|
||||
localPort = e->getBtRegistry()->getUdpPort();
|
||||
localPort = e->getBtRegistry()->getTcpPort();
|
||||
treq =
|
||||
createUDPAnnRequest(uri::getFieldString(res, USR_HOST, uri.c_str()),
|
||||
res.port, localPort);
|
||||
|
Loading…
Reference in New Issue
Block a user