You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-11-23 22:36:32 +02:00
Tools: Fixed Android build
This commit is contained in:
@@ -10,9 +10,7 @@ export async function ip() {
|
||||
return ip.ip;
|
||||
}
|
||||
|
||||
export async function findAvailablePort(possiblePorts: number[], extraRandomPortsToTry = 20) {
|
||||
const tcpPortUsed = require('tcp-port-used');
|
||||
|
||||
export async function findAvailablePort(tcpPortUsed: any, possiblePorts: number[], extraRandomPortsToTry = 20) {
|
||||
for (let i = 0; i < extraRandomPortsToTry; i++) {
|
||||
possiblePorts.push(Math.floor(8000 + Math.random() * 2000));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user