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:
parent
3632856ad5
commit
13a5dac22b
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue