mirror of
https://github.com/puma/puma.git
synced 2022-11-09 13:48:40 -05:00
Advertise HTTPS properly after a hot restart
This commit is contained in:
parent
9fc65acee7
commit
d13903ea51
1 changed files with 8 additions and 1 deletions
|
@ -252,7 +252,14 @@ module Puma
|
|||
def inherited_ssl_listener(fd, ctx)
|
||||
require 'puma/minissl'
|
||||
s = TCPServer.for_fd(fd)
|
||||
@ios << MiniSSL::Server.new(s, ctx)
|
||||
ssl = MiniSSL::Server.new(s, ctx)
|
||||
|
||||
env = @proto_env.dup
|
||||
env[HTTPS_KEY] = HTTPS
|
||||
@envs[ssl] = env
|
||||
|
||||
@ios << ssl
|
||||
|
||||
s
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue