diff options
| author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-06-03 18:03:52 +0000 |
|---|---|---|
| committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-06-03 18:03:52 +0000 |
| commit | 6e755dd85662662876020430374d3ddfad7fa829 (patch) | |
| tree | 575f5e9f5c817422b8ccb6b1c22762fa989ff6b6 /test/net/http/test_https_proxy.rb | |
| parent | 4d1e91169354d3659016cee84e0cb89b888f9964 (diff) | |
| download | ruby-6e755dd85662662876020430374d3ddfad7fa829.tar.gz ruby-6e755dd85662662876020430374d3ddfad7fa829.tar.xz ruby-6e755dd85662662876020430374d3ddfad7fa829.zip | |
avoid IPv6 issue.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8563 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/net/http/test_https_proxy.rb')
| -rw-r--r-- | test/net/http/test_https_proxy.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/net/http/test_https_proxy.rb b/test/net/http/test_https_proxy.rb index 42e9ba713..41e6ca0e5 100644 --- a/test/net/http/test_https_proxy.rb +++ b/test/net/http/test_https_proxy.rb @@ -4,13 +4,13 @@ require 'test/unit' class HTTPSProxyTest < Test::Unit::TestCase def test_https_proxy_authentication TCPServer.open(0) {|serv| - _, port, _, ipaddr = serv.addr + _, port, _, _ = serv.addr t = Thread.new { - proxy = Net::HTTP.Proxy(ipaddr, port, 'user', 'password') + proxy = Net::HTTP.Proxy("127.0.0.1", port, 'user', 'password') http = proxy.new("foo.example.org", 8000) http.use_ssl = true http.verify_mode = OpenSSL::SSL::VERIFY_NONE - http.start {|http| } + http.start } sock = serv.accept proxy_request = sock.gets("\r\n\r\n") |
