From 31c53aaa7dc3da8bc9ba6b3007c183dcbeeafe11 Mon Sep 17 00:00:00 2001 From: shugo Date: Thu, 21 Dec 2000 06:35:05 +0000 Subject: shugo git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1067 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ lib/net/ftp.rb | 2 +- lib/net/imap.rb | 4 ++-- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 0615966f1a..a282c5a98e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Thu Dec 21 13:01:46 2000 Tanaka Akira + + * lib/net/ftp.rb (makeport): don't use TCPsocket.getaddress. + Mon Dec 18 23:18:39 2000 WATANABE Hirofumi * util.c (mblen, __crt0_glob_function): add for multibyte diff --git a/lib/net/ftp.rb b/lib/net/ftp.rb index 7383b003c7..88361b9ddb 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 diff --git a/lib/net/imap.rb b/lib/net/imap.rb index 06690ddebc..34d324ed12 100644 --- a/lib/net/imap.rb +++ b/lib/net/imap.rb @@ -22,10 +22,10 @@ Object port on the named host. : debug - Returns the debug mode + Returns the debug mode. : debug = val - Sets the debug mode + Sets the debug mode. : add_authenticator(auth_type, authenticator) Adds an authenticator for Net::IMAP#authenticate. -- cgit v1.2.3