summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2011-12-09 21:37:54 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2011-12-09 21:37:54 +0900
commitf25e67b0178511b26d55642f215a095321a169a8 (patch)
tree0c5f16437afc4781f1824525f4a31de609b90e22 /src
parent2eed1c3914f5c3dcd2503067ee1e2a1d5b480b3f (diff)
FTP pasv: Use request host when connecting server with http proxy.
Diffstat (limited to 'src')
-rw-r--r--src/FtpNegotiationCommand.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/FtpNegotiationCommand.cc b/src/FtpNegotiationCommand.cc
index 4bdc7ec9..7033715d 100644
--- a/src/FtpNegotiationCommand.cc
+++ b/src/FtpNegotiationCommand.cc
@@ -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));