Skip to content

Commit

Permalink
Add IPv6 support (#165)
Browse files Browse the repository at this point in the history
Short: The industry is moving from IPv4 and IPv6 is the future. Here's some more context heroku/roadmap#40.

Internal Heroku link for more context: https://salesforce-internal.slack.com/archives/C06NM9FFY57/p1732035124610499?thread_ts=1731970807.940289&cid=C06NM9FFY57
  • Loading branch information
schneems authored Nov 22, 2024
1 parent d3afeb7 commit 0c39305
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion config/puma.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@

preload_app!

port ENV.fetch("PORT") { 3000 }
# Support IPv6 by binding to host `::` instead of `0.0.0.0`
port(ENV.fetch("PORT") { 3000 }, "::")
environment ENV.fetch("RAILS_ENV") { "development" }

# Allow puma to be restarted by `rails restart` command.
Expand Down

0 comments on commit 0c39305

Please sign in to comment.