summaryrefslogtreecommitdiff
path: root/lib/net/ftp.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/net/ftp.rb')
-rw-r--r--lib/net/ftp.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/net/ftp.rb b/lib/net/ftp.rb
index 7383b003c72..88361b9ddbd 100644
--- a/lib/net/ftp.rb
+++ b/lib/net/ftp.rb
@@ -174,7 +174,7 @@ module Net
def makeport
sock = TCPserver.open(@sock.addr[3], 0)
port = sock.addr[1]
- host = TCPsocket.getaddress(@sock.addr[2])
+ host = sock.addr[3]
resp = sendport(host, port)
return sock
end