mirror of
https://github.com/Pax1601/DCSOlympus.git
synced 2025-10-29 16:56:34 +00:00
Completed installation procedure on wizard
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
const portfinder = require('portfinder')
|
||||
|
||||
export function checkPort(port, callback) {
|
||||
function checkPort(port, callback) {
|
||||
portfinder.getPort({ port: port, stopPort: port }, (err, res) => {
|
||||
if (err !== null) {
|
||||
console.error(`Port ${port} already in use`);
|
||||
@@ -10,3 +10,5 @@ export function checkPort(port, callback) {
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
module.exports = checkPort;
|
||||
|
||||
Reference in New Issue
Block a user