Skip to content

Commit 541fa9a

Browse files
authored
Change hostname from '0.0.0.0' to '::' to enable dual stack support by default (#519)
0.0.0.0 only listens on legacy IP. changing to :: allows for use on any network - dual stacked, ipv6-only, or ipv4-only
1 parent 962f8e2 commit 541fa9a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ function registerGlobalErrorHandlers() {
3131
registerGlobalErrorHandlers._registered = false;
3232

3333
const dev = process.env.NODE_ENV !== 'production';
34-
const hostname = '0.0.0.0';
34+
const hostname = '::';
3535
const port = parseInt(process.env.PORT || '3000', 10);
3636

3737
const app = next({ dev, hostname, port });

0 commit comments

Comments
 (0)