Skip to content

Commit 771e72f

Browse files
committed
chore: rebase
1 parent 300b58f commit 771e72f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/Server.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -761,8 +761,6 @@ class Server {
761761
}
762762

763763
listen(port, hostname, fn) {
764-
const findPort = require('./utils/findPort');
765-
766764
if (hostname === 'local-ip') {
767765
this.hostname = internalIp.v4.sync() || internalIp.v6.sync() || '0.0.0.0';
768766
} else if (hostname === 'local-ipv4') {
@@ -847,6 +845,9 @@ class Server {
847845
}
848846

849847
static getFreePort(port) {
848+
const pRetry = require('p-retry');
849+
const portfinder = require('portfinder');
850+
850851
if (port && port !== 'auto') {
851852
return Promise.resolve(port);
852853
}

0 commit comments

Comments
 (0)