Skip to content

Commit

Permalink
feat: pass host into WEBrick options to allow configuration (#128)
Browse files Browse the repository at this point in the history
Co-authored-by: Matthew Hall <[email protected]>
  • Loading branch information
mhall58 and Matthew Hall authored May 18, 2021
1 parent b06f88f commit ec234a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pact/consumer/server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def get_identity
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!({
Expand Down

0 comments on commit ec234a4

Please sign in to comment.