lib/pact/consumer/server.rb in pact-mock_service-3.8.0 vs lib/pact/consumer/server.rb in pact-mock_service-3.9.0

- old
+ new

@@ -81,10 +81,10 @@ end http.get('/__identify__') end def webrick_opts - opts = { Port: port.nil? ? 0 : port, AccessLog: [], Logger: WEBrick::Log::new(nil, 0) } + opts = { Host: host.nil? ? 'localhost' : host, 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!({ :SSLPrivateKey => OpenSSL::PKey::RSA.new(File.open(options[:sslkey]).read) }) if options[:sslkey] opts.merge!(ssl_opts) if options[:ssl]