Skip to content

Commit

Permalink
fix: hostname resolving (#3128)
Browse files Browse the repository at this point in the history
  • Loading branch information
anshumanv committed Mar 30, 2021
1 parent 5863640 commit cd39491
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/Server.js
Expand Up @@ -725,8 +725,7 @@ class Server {

listen(port, hostname, fn) {
if (hostname === 'local-ip') {
this.hostname =
internalIp.v4.sync() || '0.0.0.0' || internalIp.v6.sync() || '::';
this.hostname = internalIp.v4.sync() || internalIp.v6.sync() || '0.0.0.0';
} else if (hostname === 'local-ipv4') {
this.hostname = internalIp.v4.sync() || '0.0.0.0';
} else if (hostname === 'local-ipv6') {
Expand Down

0 comments on commit cd39491

Please sign in to comment.