Skip to content

Commit 418493d

Browse files
refactor(package): update internal-ip v1.2.0...3.0.0 (dependencies) (#1471)
1 parent 2d0999d commit 418493d

File tree

4 files changed

+100
-23
lines changed

4 files changed

+100
-23
lines changed

lib/utils/createDomain.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const ip = require('internal-ip');
1010

1111
function createDomain (options, server) {
1212
const protocol = options.https ? 'https' : 'http';
13-
const hostname = options.useLocalIp ? ip.v4() : options.host;
13+
const hostname = options.useLocalIp ? ip.v4.sync() || 'localhost' : options.host;
1414

1515
const port = options.socket
1616
? 0

package-lock.json

Lines changed: 97 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)