mirror of
https://github.com/aria2/aria2.git
synced 2026-04-02 18:59:20 +00:00
Use IP address of data connection to connect to the remote server in
passive mode.
This commit is contained in:
@@ -636,8 +636,10 @@ bool FtpNegotiationCommand::recvPasv() {
|
||||
throw DL_ABORT_EX2(fmt(EX_BAD_STATUS, status),
|
||||
error_code::FTP_PROTOCOL_ERROR);
|
||||
}
|
||||
dataConnAddr_ = dest;
|
||||
|
||||
std::pair<std::string, uint16_t> peerInfo;
|
||||
getSocket()->getPeerInfo(peerInfo);
|
||||
peerInfo.second = dest.second;;
|
||||
dataConnAddr_ = peerInfo;
|
||||
return preparePasvConnect();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user