Skip to content

Commit

Permalink
bind webrick of consumer server to 0.0.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
kpse committed May 21, 2018
1 parent 0b3f7ab commit f1e858e
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 @@ -86,7 +86,7 @@ def get_identity
end

def webrick_opts
opts = {Port: port.nil? ? 0 : port, AccessLog: [], Logger: WEBrick::Log::new(nil, 0)}
opts = {Host: '0.0.0.0', 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 f1e858e

Please sign in to comment.