summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/net/http/test_https_proxy.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/net/http/test_https_proxy.rb b/test/net/http/test_https_proxy.rb
index 41e6ca0e591..5b237216f41 100644
--- a/test/net/http/test_https_proxy.rb
+++ b/test/net/http/test_https_proxy.rb
@@ -3,7 +3,7 @@ require 'test/unit'
class HTTPSProxyTest < Test::Unit::TestCase
def test_https_proxy_authentication
- TCPServer.open(0) {|serv|
+ TCPServer.open("127.0.0.1", 0) {|serv|
_, port, _, _ = serv.addr
t = Thread.new {
proxy = Net::HTTP.Proxy("127.0.0.1", port, 'user', 'password')