forked from snxraven/LinkUp-P2P-Chat
Update port range
This commit is contained in:
parent
302589e97e
commit
9461368c02
2
app.js
2
app.js
@ -27,7 +27,7 @@ let servePort;
|
|||||||
|
|
||||||
// Function to get a random port between 1337 and 2223
|
// Function to get a random port between 1337 and 2223
|
||||||
function getRandomPort() {
|
function getRandomPort() {
|
||||||
return Math.floor(Math.random() * (2223 - 1337 + 1)) + 1337;
|
return Math.floor(Math.random() * (65535 - 49152 + 1)) + 49152;
|
||||||
}
|
}
|
||||||
|
|
||||||
async function initialize() {
|
async function initialize() {
|
||||||
|
Loading…
Reference in New Issue
Block a user