Skip to content

Commit

Permalink
Fix undefined local network address (#572)
Browse files Browse the repository at this point in the history
  • Loading branch information
wabscale committed Mar 2, 2021
1 parent e3fe70a commit b71af1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/serve.js
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ const startEndpoint = (endpoint, config, args, previous) => {
const ip = getNetworkAddress();

localAddress = `${httpMode}://${address}:${details.port}`;
networkAddress = `${httpMode}://${ip}:${details.port}`;
networkAddress = networkAddress ? `${httpMode}://${ip}:${details.port}` : null;
}

if (isTTY && process.env.NODE_ENV !== 'production') {
Expand Down

0 comments on commit b71af1a

Please sign in to comment.