Closed magicmark closed 7 years ago
@ljharb yep!
Express uses http.Server.listen() (https://expressjs.com/en/api.html#app.listen) Which defaults to 0.0.0.0 (https://nodejs.org/api/http.html#http_server_listen_port_hostname_backlog_callback)
Instead of hardcoding the default, maybe it'd be better to have a default of null
, and use the 2-arg form when a truthy host isn't provided?
@ljharb Yeah sounds better, I'll do that.
Couple of things I wanted to ask you:
done()
callback (possibly exposing the 'server' attribute', or just adding a 'close' method to hypernova or something.) I can do this as a separate branch - any thoughts here?Thanks!
I prefer doing our own typechecking if possible.
If there's an issue with async tests, a separate PR to fix it, merged first, would be ideal.
@magicmark would you mind rebasing on the command line, instead of clicking "update branch" on the github ui?
@ljharb sure. I haven't touched this branch in a while though.
(waiting to finish another branch to refactor the integration test so I can write a test for this change)
would you mind rebasing on the command line, instead of clicking "update branch" on the github ui?
@ljharb that was me, my bad!
We'd like to be able to configure the host that express binds to. This new config option passes it along, and defaults to
0.0.0.0
.