mirror of
https://github.com/cool-team-official/cool-admin-midway.git
synced 2025-12-12 01:02:50 +00:00
完善
This commit is contained in:
parent
1b3e4acb87
commit
af103ec25f
@ -34,7 +34,7 @@ function isPortAvailableSync(port: number): boolean {
|
|||||||
*/
|
*/
|
||||||
export function availablePort(startPort: number): number {
|
export function availablePort(startPort: number): number {
|
||||||
let port = startPort;
|
let port = startPort;
|
||||||
while (port <= 65535) {
|
while (port <= 8010) {
|
||||||
if (isPortAvailableSync(port)) {
|
if (isPortAvailableSync(port)) {
|
||||||
if (port !== startPort) {
|
if (port !== startPort) {
|
||||||
console.warn(
|
console.warn(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user