Skip to content

Commit

Permalink
fix nil io on shutdown/cleanup (#15)
Browse files Browse the repository at this point in the history
add_ssl_listener fans out to all loopback addresses and returns nil for localhost, so we need to guard for that case
  • Loading branch information
geemus authored Jul 17, 2024
1 parent 0a7b668 commit 570e514
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/puma/acme/plugin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def bind_to(launcher, cert)
@logger.log "* Listening on https://#{identifier.value}:#{uri.port} (puma-acme)"
end

launcher.binder.listeners << [str, io]
launcher.binder.listeners << [str, io] if io
end
end
end
Expand Down

0 comments on commit 570e514

Please sign in to comment.