1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1067 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
shugo 2000-12-21 06:35:05 +00:00
parent 8d393f1855
commit 31c53aaa7d
3 changed files with 7 additions and 3 deletions

View file

@ -1,3 +1,7 @@
Thu Dec 21 13:01:46 2000 Tanaka Akira <akr@m17n.org>
* lib/net/ftp.rb (makeport): don't use TCPsocket.getaddress.
Mon Dec 18 23:18:39 2000 WATANABE Hirofumi <eban@ruby-lang.org>
* util.c (mblen, __crt0_glob_function): add for multibyte

View file

@ -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

View file

@ -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.