diff --git a/index.js b/index.js index 3edcf2a..4fb8903 100644 --- a/index.js +++ b/index.js @@ -101,6 +101,7 @@ function createServer(options) { function onHandshake(packet) { client.username = packet.username; + var serverId; if (onlineMode) { serverId = crypto.randomBytes(4).toString('hex'); } else { @@ -110,7 +111,7 @@ function createServer(options) { client.verifyToken = crypto.randomBytes(4); var publicKeyStrArr = serverKey.toPublicPem("utf8").split("\n"); var publicKeyStr = ""; - for (i=1;i