FTP pasv: Use request host when connecting server with http proxy.

pull/4/head
Tatsuhiro Tsujikawa 2011-12-09 21:37:54 +09:00
parent 2eed1c3914
commit f25e67b017
1 changed files with 1 additions and 1 deletions

View File

@ -722,7 +722,7 @@ bool FtpNegotiationCommand::sendTunnelRequest()
int family = getSocket()->getPeerInfo(dataAddr);
uri::UriStruct us;
us.protocol = "ftp";
us.host = dataAddr.first;
us.host = getRequest()->getHost();
us.port = pasvPort_;
us.ipv6LiteralAddress = (family == AF_INET6);
req->setUri(uri::construct(us));