diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/net/ftp.rb | 2 | ||||
-rw-r--r-- | lib/net/imap.rb | 4 |
2 files changed, 3 insertions, 3 deletions
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. |