Skip to content

Commit ec234a4

Browse files
mhall58Matthew Hall
and
Matthew Hall
authored
feat: pass host into WEBrick options to allow configuration (#128)
Co-authored-by: Matthew Hall <matthew.hall@partnerize.com>
1 parent b06f88f commit ec234a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/pact/consumer/server.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def get_identity
8383
end
8484

8585
def webrick_opts
86-
opts = { Port: port.nil? ? 0 : port, AccessLog: [], Logger: WEBrick::Log::new(nil, 0) }
86+
opts = { Host: host.nil? ? 'localhost' : host, Port: port.nil? ? 0 : port, AccessLog: [], Logger: WEBrick::Log::new(nil, 0) }
8787
opts.merge!({
8888
:SSLCertificate => OpenSSL::X509::Certificate.new(File.open(options[:sslcert]).read) }) if options[:sslcert]
8989
opts.merge!({

0 commit comments

Comments
 (0)