Skip to content

Commit dd1740e

Browse files
authored
fix: work with ipv4 instead of relying on ipv6's ipv4 fallback (#299)
As per the docs: > In most operating systems, listening to the unspecified IPv6 address (::) may cause the net.Server to also listen on the unspecified IPv4 address (0.0.0.0). It turns out "most operating systems" is not good enough. This fixes it since the default is: > If host is omitted, the server will accept connections on the unspecified IPv6 address (::) when IPv6 is available, or the unspecified IPv4 address (0.0.0.0) otherwise.
1 parent dfc0053 commit dd1740e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import createApp from './app';
22
import config from './config';
33

44
createApp().then((app) => {
5-
app.listen(config.port, '::', () => {
5+
app.listen(config.port, () => {
66
config.logger.info(`🚀 Server ready at http://0.0.0.0:${config.port}/`);
77
});
88
});

0 commit comments

Comments
 (0)