Replies: 1 comment 1 reply
-
Sounds useful to me too, @weisk. There's also some relevant discussion in #555 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey guys,
I think it would be really helpful to be able to specify which network interface you want the server to bind to, as opposed to the default listen to all available interfaces. There may be situations in which more interfaces are present, which you dont really want to expose... 😁
So right now we are using node's http2/http createServer, and then calling
.listen(port)
on it, in file dev.ts#L1227It would be relatively easy to accept another config parameter
host
, and pass it back to node, as documented here: https://nodejs.org/api/net.html#net_server_listen_port_host_backlog_callbackI can make a PR myself, just let me know!
Beta Was this translation helpful? Give feedback.
All reactions