diff options
author | shugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-11-15 08:16:45 +0000 |
---|---|---|
committer | shugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-11-15 08:16:45 +0000 |
commit | 0387c33031fb1ae33308d1e52bf97f856753596b (patch) | |
tree | e0354bd30b73dacb74e84e721a84de2e0a40e4df /test | |
parent | 17d9cbb0fa497f5c44504138382568ec8a4d3d10 (diff) | |
download | ruby-0387c33031fb1ae33308d1e52bf97f856753596b.tar.gz |
ftp.rb: use Addrinfo interfaces
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56799 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/net/ftp/test_ftp.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/net/ftp/test_ftp.rb b/test/net/ftp/test_ftp.rb index ca71a918e0..8290b0168a 100644 --- a/test/net/ftp/test_ftp.rb +++ b/test/net/ftp/test_ftp.rb @@ -109,7 +109,8 @@ class FTPTest < Test::Unit::TestCase def test_parse229 ftp = Net::FTP.new sock = OpenStruct.new - sock.peeraddr = [nil, nil, nil, "1080:0000:0000:0000:0008:0800:200c:417a"] + sock.remote_address = OpenStruct.new + sock.remote_address.ip_address = "1080:0000:0000:0000:0008:0800:200c:417a" ftp.instance_variable_set(:@sock, sock) host, port = ftp.send(:parse229, "229 Entering Passive Mode (|||3106|)") assert_equal("1080:0000:0000:0000:0008:0800:200c:417a", host) |