Closed AdamWill closed 1 month ago
This seems to have been the thing causing problems for me locally, where I couldn't browse to http://localhost.localdomain:6543
with BCD any more. I found that I could do so if I disabled IPv6 in Firefox. Making this change seems to fix it so I can access it with IPv6 turned on. Note you do have to re-generate the BCD bodhi container after this change.
I have a follow-up which does similar changes to a whole bunch of other places where we currently specify 0.0.0.0, but I guess that's a bit more potentially disruptive, so I split this off as the minimal change needed to fix the BCD case.
Per https://docs.pylonsproject.org/projects/waitress/en/stable/usage.html host = 0.0.0.0 binds only to IPv4. This is a problem for BCD if your system is IPv6-enabled and resolves http://localhost.localdomain to IPv6, not IPv4 - accessing the development environment server from your host may not work.
Setting the host to 'localhost' instead listens on both IPv4 and IPv6, so let's do that.