We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 300b58f commit 771e72fCopy full SHA for 771e72f
lib/Server.js
@@ -761,8 +761,6 @@ class Server {
761
}
762
763
listen(port, hostname, fn) {
764
- const findPort = require('./utils/findPort');
765
-
766
if (hostname === 'local-ip') {
767
this.hostname = internalIp.v4.sync() || internalIp.v6.sync() || '0.0.0.0';
768
} else if (hostname === 'local-ipv4') {
@@ -847,6 +845,9 @@ class Server {
847
845
848
846
849
static getFreePort(port) {
+ const pRetry = require('p-retry');
+ const portfinder = require('portfinder');
850
+
851
if (port && port !== 'auto') {
852
return Promise.resolve(port);
853
0 commit comments