1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00

Don't default to VERIFY_PEER. Fixes #1028

This commit is contained in:
Evan Phoenix 2016-07-23 21:18:52 -07:00
parent 433b885d61
commit 60fb8acb9c

View file

@ -181,7 +181,7 @@ module Puma
ctx.ca = params['ca'] if params['ca']
end
if params['verify_mode']
if params['verify_mode']
ctx.verify_mode = case params['verify_mode']
when "peer"
MiniSSL::VERIFY_PEER
@ -193,8 +193,6 @@ module Puma
@events.error "Please specify a valid verify_mode="
MiniSSL::VERIFY_NONE
end
else
ctx.verify_mode = MiniSSL::VERIFY_PEER
end
if fd = @inherited_fds.delete(str)