Skip to content

Commit cd39491

Browse files
authored
fix: hostname resolving (#3128)
1 parent 5863640 commit cd39491

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/Server.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -725,8 +725,7 @@ class Server {
725725

726726
listen(port, hostname, fn) {
727727
if (hostname === 'local-ip') {
728-
this.hostname =
729-
internalIp.v4.sync() || '0.0.0.0' || internalIp.v6.sync() || '::';
728+
this.hostname = internalIp.v4.sync() || internalIp.v6.sync() || '0.0.0.0';
730729
} else if (hostname === 'local-ipv4') {
731730
this.hostname = internalIp.v4.sync() || '0.0.0.0';
732731
} else if (hostname === 'local-ipv6') {

0 commit comments

Comments
 (0)