curveball / core

The Curveball framework is a TypeScript framework for node.js with support for modern HTTP features.
https://curveballjs.org/
MIT License
526 stars 7 forks source link

Allow to listen to IPv4 in listen(port, host) function #155

Closed spidgorny closed 4 years ago

spidgorny commented 4 years ago
listen(port: number): http.Server;

does not allow to provide the host parameter to Node. By default Node is listening to IPv6. I want to be able to force IPv4. Currently there's no way to provide '0.0.0.0' as the hostname parameter is missing in Curveball.

The function from Node has the following parameters:

listen(port?: number, hostname?: string, backlog?: number, listeningListener?: () => void): this;