unjs/get-port-please

prefer explicit `port/portRange` even if `random: true` is passed

Closed this issue · 1 comments

Environment

Mac, node 18.

Reproduction

await p.getPort({ random: true, portRange: [5000, 6000]  });

output:

63493

Describe the bug

I get number that are not part of the specified range. (I tried also alternativePortRange, same issue).

pi0 commented

Thanks for report. Should be resolved by cd4acec in next release.