From f2ebb6a7510dea6aeafbca2f5285177c6162bc64 Mon Sep 17 00:00:00 2001 From: Beth Skurrie Date: Fri, 1 Jun 2018 09:51:38 +1000 Subject: [PATCH] fix: revert bind webrick of consumer server to 0.0.0.0 f1e858e306cd45b72472dad0f213cc7657821adc fixes: https://github.com/pact-foundation/pact-mock_service/issues/89 --- lib/pact/consumer/server.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pact/consumer/server.rb b/lib/pact/consumer/server.rb index f78c224..615b92f 100644 --- a/lib/pact/consumer/server.rb +++ b/lib/pact/consumer/server.rb @@ -86,7 +86,7 @@ def get_identity end def webrick_opts - opts = {Host: '0.0.0.0', Port: port.nil? ? 0 : port, AccessLog: [], Logger: WEBrick::Log::new(nil, 0)} + opts = { Port: port.nil? ? 0 : port, AccessLog: [], Logger: WEBrick::Log::new(nil, 0) } opts.merge!({ :SSLCertificate => OpenSSL::X509::Certificate.new(File.open(options[:sslcert]).read) }) if options[:sslcert] opts.merge!({