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

Handle mixed fd/Listener in inherit_ssl_listener as well

This commit is contained in:
David Kellum 2016-04-01 11:09:48 -07:00
parent 3632856ad5
commit 13a5dac22b

View file

@ -288,7 +288,11 @@ module Puma
require 'puma/minissl'
MiniSSL.check
s = TCPServer.for_fd(fd)
if fd.kind_of? TCPServer
s = fd
else
s = TCPServer.for_fd(fd)
end
ssl = MiniSSL::Server.new(s, ctx)
env = @proto_env.dup